2013-03-15 41 views
0

「MyApp的」 文件夾中有現在的結構如下:如何填寫ini文件與庫(WinRun4J)爲Java應用程序創建EXE

- MyApp  
    - lib 
    - MyLib.jar 
    - MyApp.jar 

MyApp.jar與Class-Path: lib/MyLib.jar

我想要的清單將MyApp.exe文件添加到「MyApp」文件夾。所以我把通過WinRun4J創建exe文件所需的所有文件放到「MyApp」文件夾中。然後我按照here所述運行bat文件。這給了我exe文件一個適當的圖標,但我看到,當我運行它是一個閃屏。我在哪裏錯了?我的ini文件內容:

main.class=my.main.class 
classpath.1=lib/MyLib.jar 
splash.image=SplashScreen.gif 
+0

請看看我的編輯。 – Zharro 2013-03-15 09:51:51

回答

0

您必須將主要的罐子,以及:

main.class=my.main.class 
classpath.1=MyApp.jar 
classpath.2=lib/MyLib.jar 
splash.image=SplashScreen.gif 

或簡單地包括所有罐子:

main.class=my.main.class 
classpath.1=*.jar 
classpath.2=lib/*.jar 
splash.image=SplashScreen.gif 
相關問題