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

    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
    Posts
    13
    Rep Power
    0

    Default

    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
    Posts
    1,576
    Rep Power
    10

Similar Threads

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