The correct usage of using java
executable is:
java [-options] class [args...]
where -options
include the -cp
command option.
You haven't included your class file, therefore it displays to you the usage help.
To run your program, go to your Java folder and run your program.
Example:
cd C:\Java
java MyFirstProgram