Eclipse Export JAR Package, File-export-jar File-next...-finish in the project, pay attention to choosing your own program main Class, The MANIFEST.MF file in the jar package contains information such as the main program entry for the jar and the storage location of the dependent jar.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/45/DB/wKiom1PsjL3hp7I1AAAnnvHjOaY432.png "title=" 1.PNG " alt= "Wkiom1psjl3hp7i1aaannvhjoay432.png"/>
Java-jar Test.jar
After you export the jar package, if you have an external package dependency, you also need to modify the MANIFEST in the jar package . MF File
Manifest-version:1.0main-class:modification. Appframeclass-path:lib/classes12.jarmanifest-version for version Information Class-path when the program has an external package dependency, you can create a Lib directory under the current directory and put it in a dependent jar package MAIN-CL This property is missing from the main entry entry, the program will not find the main entrance failed to load Main-class manifest attribute from Test.jar
You can edit the meta-inf\manifest in Test.jar directly under Windows using the WinRAR tool. MF File
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/45/DD/wKioL1PslM_CV-piAACXKtDjN7U474.png "title=" 4.PNG " alt= "Wkiol1pslm_cv-piaacxktdjn7u474.png"/>
If there are other configuration files in the project, you also need to place them at the directory level and the location required by the program.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/45/DC/wKiom1Psk8Ww55VFAABGra5OuZk044.png "title=" 2.PNG " alt= "Wkiom1psk8ww55vfaabgra5ouzk044.png"/>
This article is from the "method is more than the problem" blog, please be sure to keep this source http://xubcing.blog.51cto.com/3502962/1540108