Eclipse hits a Java project into a JAR toolkit

Source: Internet
Author: User

Jar Package: A class that someone else has already written, and then package the classes, you can bring them into your project, and then you can use the classes and properties and methods in those jar packages directly. Jar packages can be divided into executable jar packages and jar toolkits.

We sometimes need to use third-party libraries in Java programming, compared to better http://poi.apache.org/,https://jsoup.org/some open source sites have some of the classes we need, So how do we package our well-written Java project into a jar package?

1, mouse right click on the project, click Export;

2, choose Java-->jar file;

3, export some configuration of the jar package;

* Export generated class files and resources indicates that only the generated. class file and other resource files are exported. * Export all output folders for checked projects All folders in Project * Export Java source file and resouces to indicate that the exported jar package will contain your source code *.java, if you do not want to leak the source, then do not choose this option * Export refactorings for CH ecked projects to include some of the reconstructed information files.
4, complete.


Eclipse hits a Java project into a JAR toolkit

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.