2013-04-06 113 views
1

我第一次使用launch4j,並且出現編譯錯誤。我已將jre文件夾複製到文件夾「C:\ Users \ 8xy2ms \ Desktop \ smsModel \ smsModel」。launch4j捆綁jre錯誤

以下是錯誤代碼:

Compiling resources 
Generated resource file... 
LANGUAGE 0, 1 
1 RCDATA BEGIN ".\\jre6\0" END 
18 RCDATA BEGIN "1\0" END 
21 RCDATA BEGIN "http://java.com/download\0" END 
20 RCDATA BEGIN "32\0" END 
101 RCDATA BEGIN "An error occurred while starting the application.\0" END 
102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END 
103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END 
104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END 
17 RCDATA BEGIN "true\0" END 

,這裏是該項目的XML

<launch4jConfig> 
    <dontWrapJar>false</dontWrapJar> 
    <headerType>gui</headerType> 
    <jar>C:\Users\8xy2ms\Desktop\smsModel\smsModel\test2.jar</jar> 
    <outfile>C:\Users\8xy2ms\Desktop\smsModel\smsModel\test.exe</outfile> 
    <errTitle /> 
    <cmdLine /> 
    <chdir /> 
    <priority>normal</priority> 
    <downloadUrl>http://java.com/download</downloadUrl> 
    <supportUrl /> 
    <customProcName>false</customProcName> 
    <stayAlive>false</stayAlive> 
    <manifest /> 
    <icon /> 
    <jre> 
    <path>./jre6</path> 
    <minVersion /> 
    <maxVersion /> 
    <jdkPreference>preferJre</jdkPreference> 
    </jre> 
    </launch4jConfig> 

回答

0

以我爲例,我是用在一些額外的選項。全部取消,它很快就會爲你工作。只要去那些只有強制性的。