Header Ads

Create an executable (exe) program from the Java program

Create an executable (exe) program from the Java program

Usually we create a Java program,
Let's run. It ends here.

If the software we created is available to others
If you want to distribute with us, then we
Needed executable or exe
Create program. By default no one can
Java program creates jar files. Then this is
The jar file we use any rapper
Dmg file for exe file or mac


Can create Such a rapper is going on
launch4j This is for learning Java programming
There are some articles in the blog Find them
Java programming language will be available
In the page.
In this example IntelliJ has been using IDEA.
Create one of the projects
At first. Then Project Structure from the File menu
I will select.


Then click on the Artifacts tab. Here +
Clicking on the icon gives us some options.
From here select JAR From Modules
with Dependencies.


After that, select Main Class from here,

Setup is over. We now generate jar files
Can do Build for Build from Build Menu
Click on Artifacts. And made a while ago
Select the artifacts done. Then
Make Jar files for us. Which
Usually available in project folder
Inside out> artifacts folder


Create jar from exe file:

Download the launch4j software
Then we will open and install. Here are three
Field is necessary. One is the output file, jar
File and jre minimum version

I'll give a name to the output file.
The jar file created from IntelliJ IDEA
Select the location. Then from the JRE tab
Minimum JRE version will be set. In the app
Some APIs in Java have been used,
Minimam Java to use them
The version runs if the program runs
This version will not be seen by all those things
have to give. If you want to custom icon icon
Options can be given from. These values ​​are set
After clicking on the gear icon, create the exe
Will be

Congratulations if you can do everything right! Welcome to Desktop Software Development

Desktop Interface or Graphical in Java
How To Create User Interface
The Java graphical user can be found
Interface - In JavaFX Writing About Java
All the text can be found in Java
The programming page.

Our Official YouTube Channel:Click Here.

No comments

Theme images by sebastian-julian. Powered by Blogger.