The java <class-name> command syntax
First of all, you need to understand the correct way to launch a program using the java (or javaw) command.
The normal syntax1 is this:
java [ <options> ] <class-name> [<arg> ...]
where <option> is a command line option (starting with a "-" character), <class-name> is a fully qualified Java class name, and <arg> is an arbitrary command line argument that gets passed to your application.