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.
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:
How to run a NetBeans project in command prompt?
(9 answers)
Closed 6 years ago.
Im trying to run a javafx project file by using the cmd in another computer that does not have netbeans on it.
Any suggestion on how to run my project file without installing netbeans (the source file is rather complicated)
And what does a batch-file means?
With the jar file you can do either
java -jar path/to/jar/file
if the jar file has a manifest with a Main-Class entry, or
java -cp path/to/jar/file MainClass
where MainClass is the fully-qualified name of your Application subclass.
This question already has answers here:
How to make a runnable jar file?
(4 answers)
Closed 7 years ago.
I'm trying to make runnable jar file of my java application. Each time I follow the steps of exporting application etc. It created a jar file for my application but when I run it, it shows popup 'java virtual machine. A java Exception has occurred'.
How can I resolve the issue?
This is correct, JAR IS a ZIP
JAR files are fundamental archive files, built on the ZIP file format and have the .jar file extension
Just run it!
This question already has answers here:
How to create a Jar file in Netbeans
(4 answers)
Closed 9 years ago.
I created a java project using netbeansIDE. Now I want to convert it into an .exe file, but I need to convert the java project into a .jar file first, since java project can't be compiled into a .exe file directly it can be only be converted to exe from jar file. So how shall I convert java project into a .jar file. Please answer in detail since I am a beginer in java programing.
Thank You.
If you are using Netbeans IDE then you can easily build a jar file of your project.
Just go to Run in the Menu above and select clean and build.
Now goto to you project folder, find Dist folder inside it and there you have your .jar file.