| cwl157 |
May 21st, 2008 3:14 PM |
running a console application .jar file by double clicking
so i use netbeans IDE for java programming and i know when you build a project it makes a jar file that is run at the command line by simply typing java -jar programName.jar. I also know that if this .jar file is a gui application that double clicking on it will also start it. I have a .jar file that is a console application and if i double click on it, a java process is started in the task manager process list but no console window pops up. Is there a way to make a console application .jar file run so the user can use it by just double clicking on it the same way a c++ .exe file console application does? I know you can make a .exe from a jar file but doesn't that destroy the purpose of java being able to run it on any platform? Thanks.
|