1. 確認此程式主要是做成 jar (即library),還是 Runnable jar (即執行檔)
2. JAR file :
a. [Project] -> [Export] -> [Java] -> [JAR file]
b. 選擇自行定義MANIFEST.MF
c. MANIFEST.MF
Manifest-Version: 1.0
Sealed: true
Main-Class: com.Main
Class-Path: lib/commons-io-2.4.jar lib/xxx.jar
(記得最後一行空白)
Sealed: true
Main-Class: com.Main
Class-Path: lib/commons-io-2.4.jar lib/xxx.jar
(記得最後一行空白)
3. Runnable JAR file :
a. [Project] -> [Export] -> [Java] -> [Runnable JAR file]
沒有留言:
張貼留言