Use fat jar Eclipse plug-in tutorial for program Packaging

Source: Internet
Author: User

Fat jar Eclipse plug-in [fjep] (http://fjep.sourceforge.net/) is an Eclipse plug-in that applies one-jar (http://one-jar.sourceforge.net/) technology. With fatjar, you can easily publish Java applications and applets.
The following is a tutorial I have written. Thank you for your advice.

1. Introduction
A very simple software packaging solution, which uses Java's custom class loader to dynamically load all classes of the application from a single file, while retaining the structure that supports jar files. With the release of fatjar Eclipse plug-in fjep, eclipse users can create one-jar applications by selecting a check box in the Wizard. The dependent library is put into the LIB/directory, the main program and class are put into main/Main. jar, and the META-INF/manifest. MF file is automatically written.

2.Install
The installation is simple. You only need to put the extracted files in the eclipse directory.

/* Put net. SF. fjep. fatjar_0.0.31.jar In the eclipse/Plugins directory, create a new plugins directory under the Plugins directory, and then put net. SF. fjep. fatjar_0.0.31.jar */

3. Graphic use
I use package my program files as an example.

(1) On the package browser panel, select build fat jar.

(2) Select the main class portal. Note that merge individual-sections of all manifest. MF files is selected.

 

(3) Select the independent JAR file you want to package. These files will be packaged into the final fat-JAR file.

(4) succeeded.

4. SWT program Packaging
The same step, but at the end of the release, the joint SWT-XXX.DLL can be placed in the same directory.
See http://fjep.sourceforge.net/fjepfaq.html

5. Download
Http://fjep.sourceforge.net/
You can also download my packaged files.
Http://www.blogjava.net/Files/Pudgy/net.sf.fjep.fatjar_0.0.18.rar

 

Original post address: http://www.blogjava.net/Pudgy/archive/2005/08/22/10727.html

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.