开发者

Could i convert a jar file to exe? [duplicate]

This question already has answers here: 开发者_开发问答 Closed 12 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜