This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I convert my Java program to an .exe file?
Is there any free tool to convert jar into exe ?? I searched but couldn't find effective software all are giving only trial versions!
Thanks!
Although I never converted jar to exe, but while searching for the term, I found the following free utility:
JSmooth .exe wrapper
JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications.
Download: http://jsmooth.sourceforge.net/
source: http://viralpatel.net/blogs/2009/02/convert-jar-to-exe-executable-jar-file-to-exe-converting.html
Related
This question already has answers here:
How can I convert my Java program to an .exe file?
(16 answers)
How do I create executable Java program? [duplicate]
(11 answers)
Closed 3 years ago.
In Linux world one can just add shebang to the jar file and create an executable, it's widely disputed though whether this is a good practice or not. My question would be - is there something similar I can add to make the jar executable both on Windows and *nix platforms?
If you have a MainClass in the jar file's manifest file and you have Java installed on your system (i.e. Java is associated with the .jar file type), then the default Java installation should be used to execute this jar.
See How do I create executable Java program?
This question already has answers here:
How can I convert my Java program to an .exe file?
(16 answers)
Closed 5 years ago.
I have developed a java desktop application for windows i need to make exe file, I don't know procedures to develop exe from my project
Right-click the desired project and choose Package as > EXE Installer from the context menu (https://netbeans.org/kb/docs/java/native_pkg.html#instse)
Note: The IDE creates an EXE installer only if Inno Setup is installed and added to the system Path variable (https://netbeans.org/kb/docs/java/native_pkg.html#tool)
When the EXE installer is ready, it is placed in the /dist/bundles/ directory.
This answer extends #pruntlar answer.
Since you will be making Windows applications I suggest you also look into Windows Installer Package(MSI). The Netbean link #pruntlar provided should also cover this topic. The tools needed are available free here: http://wixtoolset.org/
Why not launch4j.
It's written in Java and it can create a .exe file that you run your jar file or it can create a .exe file with your jar file inside it.
This question already has answers here:
JAR hidden inside EXE?
(5 answers)
Closed 8 years ago.
I've always wondered how, on Windows, Minecraft has an exe file that will work, You can also change the file extension to .jar and run it like a normal jar file as well, Any ideas on how they have accomplished this?
I've searched all over google and haven't found any answers. Unless I'm just searching the wrong thing, I would like to know how to package my JARs like this!
Thanks!
They use a program called launch4J to wrap the jar into an exe. As you can see the program here http://launch4j.sourceforge.net/. This is apparent when you run minecraft with No java installed you will see a message box from launch4j saying that you need to install java. Note the java code is not converted to native windows code just launched natively.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I convert my Java program to an .exe file?
I have Java project and will making a setup file to my project. İn my procet I have a jar file which runs my project. whan can I do to create a setup file to my Netbeans Java Project
There are software convert from jar to exe like JAR2EXE but it's not setup file
Check out Launch4J which will create an Windows executable from a Java JAR file.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How can I convert my Java program to an .exe file?
How can i create Exe file for java program. Do i need to install any software for it, And how to add Icon to that exe file.
Use known tools: JSmooth, LaunchAnywhere, JexePack
It's difficult. JDK could not do that, you need a third tool to do that. please refer http://www.duckware.com/jexepack/index.html.
Why do you need to do that? maybe you should use c#/vb to program.
You can but this wouldnt be a real EXE, you will still need to install the JVM to run your app. try jstart32.