Java Executable file from JAR
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.
精彩评论