I have a Swing application as jar file.
I am launching the application in 2 ways.
-
In command prompt java -jar app.jar. launching & Working fine.
-
double click app.jar. launching, but not working properly as expected. somewhere failed.
What would be the problem?
Where the logs(System.out.println()) will be printed in case of running the jar directly.
I have lot of sysouts. Will that cause problems?
Anyone please help in this regard.
According to the Java Doc: http://download.oracle.com/javase/6/docs/api/java/lang/System.html#out
For logging purposes, use some library such as log4j or Java Logging.