![]() In each directory of the release tree, you can set the entire directory content or a single file in any directory on the disk. The graphical user interface of install4j allows you to: The excellence of install4j lies in its ease of use, tight integration into the target platform, and flexible JRE management and deployment options. Install4j is a powerful, multi-platform Java installation file generation tool for generating Java applications Localized installation and application release. In fact, I introduce this method today and I don’t want you to package it into an exe file, because after all, exe files are not cross-platform, and the original intention of java is lost if the exe format is used.Įxe4j can be packaged into various formats of exe, jar can be packaged into exe, or an external jar file can be referenced, it can also be packaged into a windows service program, and the minimum jre version can be set, and the startup screen can also be set, Although java 6.0 has achieved this, it is still not as fast as the splash screen generated by exe4j. How to keep the code safe and easy to debug? So packaging into an exe is a good way. Of course, you can choose to obfuscate, but after obfuscation, troubleshooting is not so easy, because when obfuscating, some types of information are confused. Once you unzip it, you can see everything. When we write programs, sometimes there is a requirement, that is, we hope that our program is an executable file, not A jar file, in fact, most of the time, the executable jar file can meet the requirements, but if our program needs to be protected, then it is not safe to package it into a jar file, because the jar file is a decompressed file. Your project=>Export.=>fat jar in the wizard =>. If you want to be an executable jar, please pay attention to select the main class. Use this tool to easily package the project in eclipse into jar files. Installation method After decompression, copy the net.sf.fjep.fatjar_0.0.24 folder under the plugins folder to the plugins under the eclipse installation directory. I use Eclipse, its own packaging method is not very good when packaging some resources such as pictures Cool. Recommended plug-in: fatJar (used by Eclipse) Using these tools, you can also publish your java program smoothly!ġ Packaged into a double-click executable jar file. ![]() After trying and comparing, I got a lot of help on the blog of "Thousand Miles Bingfeng". There are many plug-ins and methods introduced online in these steps, but some are easy to use, some are not easy to use, and some require registration. It would be indecent if the customer is required to install jre again and set the environment variable. package the compiled program into a jar file, and then make an exe, This way the code is not visible but the exe file cannot run on a computer without jre installed. Java package-exe file-the solution finally released in the form of setup
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |