View Single Post
  #2 (permalink)  
Old 08-07-2007, 09:43 AM
toby toby is offline
Member
 
Join Date: Jul 2007
Posts: 40
toby is on a distinguished road
Try this:
Code:
class HelloWorldApp { public static void main(String[] args) { // Display "Hello World!" System.out.println("Hello World!"); } }
To compile:
Code:
javac HelloWorldApp.java
To run it:

Code:
java HelloWorldApp
And yes you should put that file in the bin directory unless you have set up classpaths to point to somewhere else.
Reply With Quote