The Java program is packaged as an exe and jar graphic tutorial
- 2020-04-01 02:41:06
- OfStack
Java program packaging
1, Java project source code into a jar packageSelect the project, right-click and select export...
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015157.jpg ">
Select the Runnable JAR file
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015158.jpg ">
(1) launch configuration is the starting class of Java program. If the project does not generate a class, first execute "selected project --run as-- Java Application".
(2) Export Destination output file name, the jar file to be generated
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015159.jpg ">
2. Jar to.exe
Use exe4j4.0 to generate the jar as an exe execution file
Cracked exe4j4.0 can be downloaded in the link below.
(link: http://xiazai.jb51.net/201401/yuanma/exe4j4.0 (jb51.net). Rar)
(2) fill in the application properties
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015160.jpg ">
(3) properties of the execution program< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015161.jpg ">
(4) add the jar package< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015162.jpg ">
(5) set up the running Java version< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015163.jpg ">
(6) add a Java environment< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015164.jpg ">
(7) just click next3. Make installation files
Use the isetup-5.5.4.4.exe tool to create the installation package. The tool can be downloaded from the following link:
(link: http://xiazai.jb51.net/201401/yuanma/isetup-5.5.4 (jb51.net). Rar)
(1) run isetup-5.5.4< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015165.jpg ">
(2) fill in the release program information 1
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015166.jpg ">
< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015167.jpg ">
(4) add resource files< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015168.jpg ">
(5) next, click next to enter the interface< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201401/2014010816015169.jpg ">
(6) next to the default Settings, click next to the last