View Single Post
  #2 (permalink)  
Old 07-21-2007, 10:14 AM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
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:

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

Code:
java YourClassName
You can read basics here:

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