Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Show Java Console for desktop applications

raleighr3Apr 4 2016 — edited Apr 4 2016

Hi All,

I have an issue where the "Java Console" doesn't show when a Java Swing application is started from the desktop. E.g. javaw.exe -jar some.jar or java.exe -jar some.jar. Even for a simple HelloWorld app that is just a JFrame when does not show the "Java Console" nor does the Java icon show in the system tray. When launched as a Web Start app (using a local jnlp) the console and systray icon do work. However this is not a viable solution in most of our circumstances.

Show how can I, or is it even possible to have the console and/or system tray icon for desktop application. The appropriate settings of "Show Console" and "Place Java Icon..." are set in the Java control panel.

pastedImage_3.pngpastedImage_4.png

Note by "Java Console" I am referring to this 'built-in' console and not a cmd.exe or other os shell. I've only tried on Windows 7 with jre versions 6,7, and 8

Java Console.png

thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2016
Added on Apr 4 2016
0 comments
1,512 views