To run the compiled version of the HelloWorld program, on the command line simply type:
<code>java HelloWorld</code>
Do not add the ".class" extention to the name; the Java interpreter will already be able to locate the file based on the class name you provided, and adding the extention incorrectly will simply confuse it.