1. Two installation methods:
1) Download and install:
https://sourceforge.net/projects/fjep/files/
Unzip the downloaded ZIP package, unzip the Jar inside to the plugins folder under the Eclipse installation path;
restart eclipse If the installation is not successful, delete \configuration\org.eclipse.update\platform.xml under eclipse and restart is also invalid;
2) Online installation:
eclipse menu bar help->install new software...->work with
new: fatjar - http ://kurucz-grafika.de/fatjar
installation failure prompt: Failed to prepare partial IU: [R]net.sf.fjep.fatjar 0.0.31.
2. According to the Internet, the current fatjar version only supports eclipse 3.4. The elipse version is: Version: Mars.1 Release (4.5.1)
Fatjar_0.0.32.zip is available for download on CSDN and OSChina, saying that it can solve the problem, but it has not been tested;
3. Use the following method to solve the eclipse and fatjar versions Incompatibility:
Go to Help -> Install New Software...,
select The Eclipse Project Updates under the Work with list - http://download.eclipse.org/eclipse/updates/4.5
In the pop-up installable components, select:
Eclipse Tests, Examples, and Extras
Open the drop-down selection: Eclipse 2.0 Style Plugin Support installation;
4. Restart eclipse and then install fatjar online successfully, restart eclipse, right-click the project, and pass Build Fat Jar Package;
or right-click the project and select Export->other->Fat Jar Exporter to package the project.
5. Fatjar packaging project process, name the jar and select Main-class, check One-JAR, next, you can see the third-party lib to be packaged, finish.
6. Run the jar package, command: java -jar xxx.jar.
Reprinted from: https://blog.csdn.net/fjssharpsword/article/details/51557247