eclipse with ant generate executable jar package, and a detailed install4j the complete sample jar exe program packages generated

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/zp357252539/article/details/90711306

  1. By Eclipse generate a runnable JAR :

In the library handing: in the first and third speed can be, because it is the second fight in a bag running slowly

  1. Check SAVE as Ant script configuration can be saved ant
  2. According to xml  we can analyze the core command is only part of the figure below, the rest is just a reference to another directory of third-party jar.

Install4j use summary

The java labeled as exe, if it is recommended JDK1.6 version of Install4j 4.

By eclipse / ant / Export command to run the jar

For example eclipse

Create a local JRE (this step is very important, otherwise the back can not choose, can only be downloaded from the official website JDK by install4j)

Specify the local JRE, to facilitate customers do not install JDK.

Began making

 

The minimum configuration can only version

Intermediate links have been the next step until you select the output directory

Next until you add files, folders

If the file is a separate select Add Files, if you create a folder after folder, select the folder path

File selected Single, Folder Options dirctory

Select the file need to use (do not care exe, only schematically, is really the case should be Complink.jar [run])

Next until completion

Select Folder

The jar dependent folder copied to this directory

Next until completion

NEXT to the following interface, select all the files needed as

Click New launcher

Select the topmost

Select the file icon

Selection may run the jar and main class

After the completion of the election

Next up is complete, select JRE

Double-click the new media file, select windows

Our first step is to select JRE

NEXT until completion,

Start Build start compiling, after compiling a good installation package can be found in the output path

The last step to save the configuration

Easy next time again with exe compiler

Guess you like

Origin blog.csdn.net/zp357252539/article/details/90711306