Export and import in the jar package Eclipse

JAR meanings:

    JAR is a Java archive file is an acronym for the Java Archive File. jar file is a compressed file is a specific type of compression complete Java project in the form of packets. It is typically used to achieve better write tools such as third party programs by way of introducing like a jar. Now it describes methods for export and import of this eclipse jar package through the IDE. Follow-up will be posted by the method of operating idea.

♦ Export jar package

Example:

[Scene: company owner found a way to manipulate arrays of the strongest, and write tools, want to put this tool class sent by company employees, but employees do not want to know the specific contents of the package, and then export the jar package]

>> new project in Eclipse Utils -> New Package com.money.arrays -> paste tools BossArrays written in a packet;

>> selected item Utils right to select [Export], in the pop-up dialog box, select Java JAR file directory below [] and then click next;

>> will pop up on the step after the [] JAR Export dialog box, the dialog box [Select the resources to export] area, select the item you want to export (to keep the default under normal circumstances),

    Fill the target path and file name for the export project in the JAR file in this example, select the desktop as the export path. After the selection is completed click [Finish]

 

 

 After you export will find much success on the desktop icon that looks like, this is the boss exported jar package it, to this point, the boss to complete the work Export jar package

 

♦ import jar package

 

In the name of the project to be imported right, [New Folder], create a file called [lib] folder. Then export the jar package copied to the folder, right-click on the imported jar package, select [Biuld Path], add the path, the import was successful! Now employees can use their own tools like the boss to complete the work it

 

Guess you like

Origin www.cnblogs.com/zhou-x/p/11728873.html