Using Eclipse to package Java projects as Jar executables

Source: Internet
Author: User

Instead of installing your Java project into your computer, package your project directly into a. jar file and double-click it to run (provided that the computer running the jar file has a Java Virtual machine installed):

Select "File"-> "Export", select "Java"-> "JAR file" in the Open dialog box, then "Next", select the item or Java file you want to package in the new window, in the "Select the Export Destination Select the path where you want to put this packaged file, next and Next, select the class of your project Main method (note, important) in the Select the class of the application entry point: Finish "OK, you double-click the generated jar file to try, you can think of EXE file that run."

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.