In eclipse, how does one package a Java program into a jar package?

Source: Internet
Author: User

1. Right-click your project and choose export> JAVA> JAR file.

2. After completing the first step, you will enter a window where you can see that your project has been matched in the left-side window. The window on the right is the files in your project, all selected. Keep the settings in the window as default. Click Browse to set the path to be exported and click Next,
All the settings in the next window are default, directly next.
Step 3

3. After Entering step 3, there will be a main class tag under the window, click browse on the right
Select the program entry in your project (that is, the class containing the main method)
Then click Finish.

4. Finally, find the exported. jar file in the previously set path and double-click it to run it.

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.