Use Fat-jar to package multiple Java projects as executables
Solve the problem of packaging multiple interdependent Java projects as executables!
Prerequisites: Install the Eclipse Fat-jar plugin. After you download the Fat-jar package, unzip it and copy the plugins below into the plugins under the Eclipse installation directory.
First look at our project list!
We take the game Server main project, GS, he depends on the package has base,door,fight, which fight relies on Door,door, relying on base. In fact, there is not much code.
One thing to note is that the following code in the GS project must be included in the SRC file! Right click on Project, select export Select Other/fat Jar exporter, click next Select the project GS that we want to build, click next Fill in the necessary information, such as the name of the executable jar package to be exported, and Main-class. Click next tick The project you rely on, click finish! under the Command window, run the generated executable jar package. Description: Fat-jar plug-in packaging, the choice is a simple and rough way! Some other problems: in Eclipseide, the default format is UTF-8, but the executable jar file packaged with Fat-jar does not have this default option and requires the user to import a Chinese-language configuration file with a UTF-8 conversion! Transferred from: http://www.cnblogs.com/archy_yu/p/3326005.html
Packaging multiple Java projects as executables using Fat-jar