Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   running a console application .jar file by double clicking (http://www.programmingforums.org/showthread.php?t=15856)

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.

mbd May 22nd, 2008 9:18 AM

Re: running a console application .jar file by double clicking
 
have you already done this: http://java.sun.com/docs/books/tutor...r/appman.html?

cwl157 May 22nd, 2008 1:17 PM

Re: running a console application .jar file by double clicking
 
i've read some stuff about manifest files but i create the jar using netbeans IDE. Is there a way to incorporate that into the build command of netbeans?

mbd May 22nd, 2008 1:22 PM

Re: running a console application .jar file by double clicking
 
i do not know how netbeans builds jars.


All times are GMT -5. The time now is 4:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC