Could i convert a jar file to exe? [duplicate]
Possible Duplicate:
(Java) jar to exe
What if i want to run a .jar program on a pc that doesnt have the JDK...?
would it possible?
Options include:
- Include the Java Runtime Enviroinment (JRE) in your installer. This is probably the simplest option.
- Include the JRE ''and'' Wrap your application in a small, native executable launcher. Exe4J makes this easy for MS Windows.
- Compile your Java code to native executable. I haven't done this myself. A company claiming to support this is Excelsior; they have a comparison of approaches here.
If you have a site to distribute the app. from, JWS and deployJava.js are a better alternative to creating an EXE.
JWS will work on any platform with Java 1.4+, and the deployJava.js will help ensure the JRE is installed.
精彩评论