(See Java Sun API Specification Page for other versions, etc.)
javac HelloWorld.java
This will take the source code in the file HelloWorld.java (which
better contain the class HelloWorld)
and create the Java ByteCode in a file HelloWorld.class.
java HelloWorld
Note that you do not use the any file extension in this command.
Prof. Robert Sloan Dept. of Computer Science (M/C 152) University of Illinois at Chicago