Results 1 to 3 of 3
  1. #1
    PeteMarsh is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default Console doesn't appear!

    I wrote the following 'Hello World' program:

    Java Code:
    public class Main
       public static void main(String[] args)
           System.out.println("Hello World!");
    Then I compiled it to a .jar file. When I run the .jar nothing happens! What's going on?

  2. #2
    coe11n is offline Member
    Join Date
    Dec 2007
    Rep Power


    may be the reason is from the class name (your name is Main )

    it will not work

    change the class name

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

Similar Threads

  1. How to get input from Console
    By karma in forum New To Java
    Replies: 8
    Last Post: 08-13-2010, 10:32 PM
  2. ModSecurity Console 1.0.3
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-15-2008, 07:44 PM
  3. Help with java console
    By carl in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 03:44 PM
  4. I want to do is clear the console
    By paul in forum Advanced Java
    Replies: 7
    Last Post: 08-03-2007, 07:54 PM

Posting Permissions

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