Results 1 to 2 of 2
  1. #1
    baltimore is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default 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
    Java Code:
    //A Very Simple Example
    class ExampleProgram {
       public static void main(String[] args){
            System.out.println("I'm a Simple Program");

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Rep Power

Similar Threads

  1. Will this applet ever work?
    By willemjav in forum Java Applets
    Replies: 4
    Last Post: 04-20-2008, 05:40 PM
  2. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  3. how would i get this to work...?
    By deeadeed in forum New To Java
    Replies: 6
    Last Post: 12-06-2007, 02:58 AM
  4. Replies: 0
    Last Post: 10-04-2007, 09:33 PM
  5. what do I have to install to work with JSP
    By boy22 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-05-2007, 04:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts