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

    Default newbie: the app is loaded but i can't see it

    Hi, i'm really newbie in java, I'm trying to follow some tutorials to learn java, and my question is:

    I typed a console application, but after compile it, the app it doesn't appears in the screen, but it is loaded because I obtained a JOptionPane.showMessageDialog confirm everytime i executed this application. So, What I have to do for the application open in a DOS window?

    In the void main function I tried the next:
    serverchat sslx= new serverchat();

    but doesn´t work, can you help me?

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power


    Java console applications do no open a console by default. If you are running your application by double clicking on its jar, this is not correct way to see console output.

    You will need to open a DOS window and type something like this if it is the output is a jar file:

    Java Code:
    java -jar yourJarName.jar
    If it is a class instead of jar, run it as follows:

    Java Code:
    java YourClassName
    You can read basics here:

    "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)

Similar Threads

  1. newbie needs help...
    By vicky08 in forum New To Java
    Replies: 2
    Last Post: 03-31-2008, 04:26 PM
  2. Newbie
    By CSnoob87 in forum Introductions
    Replies: 2
    Last Post: 02-18-2008, 08:49 AM
  3. Replies: 0
    Last Post: 02-15-2008, 08:41 AM
  4. Replies: 1
    Last Post: 08-08-2007, 02:42 PM
  5. Newbie in applet, Help me
    By barney in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:14 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