How Eclipse exports executable jar packages

Source: Internet
Author: User

The executable jar package was used when writing the shell script, and the jar package exported from Eclipse needed to export both the jar file and the Library folder, as follows:

(1) Click the Java that the main method resides in, run Java application

(2) Select the project name to export right-click Export, select runnable JAR file and Next

(3) Launch configuration selects the Java file where the main method resides, and this file is also executed in the first step Htmlparser.java;

Then export destination Select the path to be exported; It is important to export the jar library, otherwise it cannot be used in shell scripts, so select

Library Handling's third item: Copy required libraries into a sub-folder next to the generated JAR. Final finish.

(4) Viewing the exported executable jar file

How Eclipse exports executable jar packages

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.