Results 1 to 2 of 2
Thread: Program don't work
- 08-04-2007, 09:10 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
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
ThanksJava Code://A Very Simple Example class ExampleProgram { public static void main(String[] args){ System.out.println("I'm a Simple Program"); } }
- 08-04-2007, 09:51 PM #2
Similar Threads
-
Will this applet ever work?
By willemjav in forum Java AppletsReplies: 4Last Post: 04-20-2008, 05:40 PM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
how would i get this to work...?
By deeadeed in forum New To JavaReplies: 6Last Post: 12-06-2007, 02:58 AM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM -
what do I have to install to work with JSP
By boy22 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-05-2007, 04:08 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks