Jar package merge and jar merge

Source: Internet
Author: User

Jar package merge and jar merge

Merge multiple jar packages:

1. First, extract the jar package to be merged to the same directory. Jar xvf xxx. jar

2. Use the jar command to package all. class and. aidl files. Jar cvf output. jar unzippedFiles1/unzippedFiles2/

Multiple jar packages are merged into an output. jar package.


How to combine multiple jar packages into one

For example, apache commons, axis/axis2, and xml Processing
The practice is very simple. In fact, the jar file is a compressed file. It is easy to install win rar/zip.
First, select multiple jar files and right-click to decompress them to a directory. At this time, some files may overlap, mainly MANIFEST. MF. After decompression, fill in the merged information in MANIFEST. MF or write a readme file. If you need it, you 'd better record the merge file to record the data for future upgrades.
Then, compress the content in this folder. Make sure that the root directory is correct! Select zip compression and the extension is jar.
Finally, after the merge is completed, set a good name.

How to merge jar packages

1. Export-Jar File: in this case, several Jar packages will be packaged into a Jar package.
2. Export-Runable Jar File-Extract required libraries into generated JAR: Decompress the contents in these Jar packages to generate a new Jar package.
Find a compression software to open the Jar package file.
Jar is the suffix of the zip format.

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.