Skip to Main Content

New to Java

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!

Force jar to run through java.exe not javaw.exe

806041Oct 17 2010 — edited Oct 17 2010
Hi,I am programming using eclipse 3.5.1 when i try to export my project as a single jar file it always runs through javaw.exe
even if its a console app the problem is that sometimes i want it to run through java.exe without having to write the annoying batch file (java -jar "appname.jar") which will only probably run under windows, is there a way around this that would force the jar file to run automatically in console mode?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2010
Added on Oct 17 2010
2 comments
580 views