Possible Duplicate:
How can I convert my java program to an .exe file ?
How can I create an .exe file in NetBeans for a Java program?
I've had a lo开发者_StackOverflowok around, and I can make a JAR but not an exe.
Have a look at JAR wrappers like Jar2Exe, JSmooth or Launch4j.
They will wrap your JAR inside an executable which role is to launch the JVM.
If it is Java. You may need another tool to pack an exe for your application. E.g. http://www.duckware.com/jexepack/index.html
There are wrappers like Launch4j that can wrap .jar
s into .exe
launchers. However, even those require the JRE to be present in the system to work.
精彩评论