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 |