Install and use the FatJar plug-in Eclipse, eclipsefatjar
The jar package generated in Eclipse is divided into many situations. The simplest case is that a third-party jar package is not used, so you can generate a jar package directly using Export. However, if a third-party jar package is used, it is complicated and inconvenient. FatJar can solve this problem. If FatJar contains many third-party jar packages, it is easy to generate jar packages.
There are two methods to install FatJar. You can download files, copy them to the plug-in folder of Eclipse, or install FatJar online. The following describes the steps for online installation.
(1) In Eclipse, click Help-> Install New Software. In the pop-up Install interface, click Add, enter the name Fat Jar, and the address http://kurucz-grafika.de/fatjar. then, you can automatically Install it;
(2) After the installation is successful, click Windows> Preferences. If the pop-up window contains Fat Jar Preferences, the installation is successful;
After installing Fat Jar, you can easily generate jar packages for projects that contain third-party Jar packages.
(1) Right-click the project to be packaged and click Export. In the displayed dialog box, select Other-> Fat Jar Exporter;
(2) Click Next and select the project to be packaged;
(3) Click Next and enter the Jar Name. If you want to generate a Jar package at any location, select use extern Jar-Name and select Main-Class and Class-Path, select One-JAR;
(4) Click Next to check all third-party Jar packages used in the project;
(5) Click Finish to complete packaging;
(6) run the Jar package in the Dos window.
Why can't I install the fatjar plug-in eclipse ??
The tutorial image I used myself is no longer on this computer, and I don't know if it can help me. 2. Use the eclipse plug-in fat-jar to decompress the compressed package, overwrite Eclipse plugins, and restart
How to download the jar package for the fat plug-in eclipse is also available
Fat has never been used. I usually use eclipse to directly package jar files.