Use fat-jar to Package Multiple java projects as executable files

Source: Internet
Author: User

For a programmer who has switched from C ++ to Java, it is also difficult to create java executable files. The project was left behind by a few colleagues. Several necessary library files and tools for creating executable files were encrypted and unblocked; I don't know if it is because the company's relationship with the previous colleagues is not well handled. In addition, the qq of the former colleagues wants to talk about encrypted files, there is always no effective reply; I don't know whether to blame my former colleague for his professional ethics or the company's management! However, in any case, this problem cannot be solved. I certainly cannot eat it. These days, I have read the article to solve the problem of packaging multiple mutually dependent java projects as executable files!

Prerequisites: Install the eclipse fat-Jar plug-in. Download the fat-jar package, decompress the package, and upload the files under plugins to the plugins under the eclipse installation directory.

In the command window, run the generated executable jar package. Note: The Fat-Jar plug-in is packaged in a simple and crude manner!: In eclipseIDE, the default format is UTF-8, but the executable Jar file packaged with Fat-jar does not have this default option, users need to import with Chinese configuration files, with a UTF-8 conversion!

Related Article

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.