Dear All, I have a java program....and the compiled ".class" file for this....basically, it is a Frame..i will run this said program from my command prompt like, C:\java megalaunch ...the frame will appear now.... what i want to know is .............Is it possible to change this said class file, in to an .exe file...so that, (instead of going for a command prompt for running the said program) i can just double click the said .exe file and start that said Frame.... pl. post a reply, Sakthivel S.
Making an .exe file is the least best choice you could make. You can .jar your app and then have the user (or icon) click the .jar file and it will invoke java. Since this is apparently a Windows app (this exe you were talking about would be platform specific) you can just create a .bat file. that gives you the opportunity to change directories, modify the path if needed, invoke the java application naming your preferred classpath on the way and referencing any input parameters that you might want. There are lots of examples of this scatterred through the Beginner and Intermediate forums. You of course will want to find the example in the Intermediate Forum if possible .
Check out..... www.excelsior-usa.com/jet.html This software will turn your java programs into .exe's Downside is it takes about 30 mins to install! I've had a couple of problems with this, but a few of my friends swear by it. Upside is that your programs will run much faster.