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