View Single Post
  #1 (permalink)  
Old 08-04-2007, 11:10 PM
baltimore baltimore is offline
Member
 
Join Date: Jul 2007
Posts: 40
baltimore is on a distinguished road
Program don't work
Hi, I've looked around for a sample program and i found one which is supposed to print "I'm a sample program" on the screen. however when i launch the .jar it says that there is no main class definition, now i would add one myself but I'm new to java and have no clue what that is or where to add one, could someone help me with this? the code is below
Code:
//A Very Simple Example class ExampleProgram { public static void main(String[] args){ System.out.println("I'm a Simple Program"); } }
Thanks
Reply With Quote
Sponsored Links