Download Eclipse and eclipse

Source: Internet
Author: User
Tags export class

Download Eclipse and eclipse
Eclipse-JAR package preparation details 1. Jar packages are divided into two types: one is not running, and the other is a runable Jar package. Their main differences are as follows:> A non-direct Jar package is mainly used to call other programs> A runable Jar package can be compiled and run directly using the command line to improve efficiency.
2. First, let's take a look at the production process of a non-running Jar package:> right-click the project-> Export...-> Java-> JAR file-> Next
> Select the resources to export: and Select the project to export.
> There are four export options below (generally the first one ):
> Export generated class files and resources: Export class files to drink resources
> Export all output folders for checked projects: Check the output folder of the project.
> Export Java source files and resoucrces: Export Java source files and resource files
> Export refactorings for checked projects: Check the refactoring of the Project Export.
> Select the export destination: Select the name and path of the exported source file.
> Options ):
> Compress the contents of the JAR file: whether to Compress the contents of the JAR file
> Add directory entries: whether to Add directory items
> Overwrite existing files without warning: Can you rewrite an existing file without warning?> click Finish next. All the pop-up windows that appear in the middle are selected, this static Jar package is ready. 3. You can run the following Jar package:> right-click the project and choose Export... -> Java-> Runnable JAR file-> Next
> Under Launch configuration: select the project you want to export
> Export destination: select the path to Export> Library handing: processing of the database
> Extract required libraries into generated JAR: Extract the required Library to the generated Jar package in the decompress mode.
> Package required libraries into generated JAR: Put the required Jar Package into the generated Jar Package.
> Copy required libraries into a sub-floder next to the generated JAR: Copy the required library to a sub-folder and place it next to the generated jar file.> next, click Finish, select all the pop-up windows that appear in the middle. The Jar package here is the command line usage of the Jar package that can be run separately *. jar> server. log 2> & 1>-jar execution Jar package parameters> *. jar package to be executed
> Server. log will be output to the command line when an exception occurs during execution. It looks messy and we write it into the file.
> 2> & 1 error redirection: Write standard output errors to server. log.

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.