What's a good program to turn a .jar into .exe? I've tried jSmooth, JEXECreator and launchJ to no avail.
-
1) Can you launch the app. as a Jar by double clicking it? 2) Why code in the cross-platform Java then make a Windows native? 3) A good installer for Java rich-client apps. is Java Web Start. JWS works on platforms that support Java.Andrew Thompson– Andrew Thompson2011-05-14 15:42:06 +00:00Commented May 14, 2011 at 15:42
-
1) No it's Vista. Java Web Start won't work my Vista ...64 bit. I canm however, open it using winzip 2.) Offline version for desktop 3.) yes...test– test2011-05-14 15:47:28 +00:00Commented May 14, 2011 at 15:47
-
1) Can you launch the app. as a Jar by double clicking it? "1) No it's Vista. Java Web Start won't work my Vista ...64 bit." What I said in (1) had nothing to do with JWS. "I can however, open it using winzip" If WinZip is the default program for Jar files, the file association is wrong.Andrew Thompson– Andrew Thompson2011-05-14 15:54:31 +00:00Commented May 14, 2011 at 15:54
-
yes my file association is wrongtest– test2011-05-14 16:16:39 +00:00Commented May 14, 2011 at 16:16
4 Answers
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.
3 Comments
I prefer JEXECreator 1.9.3, it is very good and easy to use
2 Comments
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.
Comments
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.