Return to Lesson

Platform-Specific Details: Interpreting a Java Source File Using the JDK

UNIX:
java HelloWorldApp
DOS shell (Windows 95/NT):
java HelloWorldApp
Note: For the UNIX and Windows 95/NT JDK, the argument to the Java interpreter is the name of the class to run, not the name of a file. Be sure to capitalize the class name exactly as shown above.

Mac OS:

Drag the HelloWorldApp.class file icon onto the Java Runner icon. When prompted for command-line arguments, simply press Return or click the OK button.

Return to Lesson