(See Java Sun API Specification Page for other versions, etc.)
javac HelloWorld.javaThis 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 HelloWorldNote 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