Use Fat-jar to package multiple Java projects as executables

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.