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.