开发者

Java Executable file from JAR

开发者 https://www.devze.com 2023-03-06 03:01 出处:网络
What\'s a good program开发者_开发知识库 to turn a .jar into .exe? I\'ve tried jSmooth, JEXECreator and launchJ to no avail.As per the comments:

What's a good program开发者_开发知识库 to turn a .jar into .exe? I've tried jSmooth, JEXECreator and launchJ to no avail.


As per the comments:

my main class file does not have String (main[]) class... it shouldnb't because it's an applet

So your JAR does not represent a Java application at all? You need to convert your applet to a Java (Swing) application. Those EXE creators are for Java applications only.


I prefer JEXECreator 1.9.3, it is very good and easy to use


This is commercial but you can try evaluation version of exe4j: http://www.ej-technologies.com/products/exe4j/overview.html

I have never seen any working free tool for this.


There's Excelsior JET too, it claims passed the Java Compatibility Test, which makes it equivalent to a regular compiler. I used it once.

But you should know that such solution are somewhat failure prone... I had a hard time trying to compile a rather simple Java app to EXE. In the end, it worked, to some degree.

0

精彩评论

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