2013-04-06 4 views
1

J'utilise launch4j pour la première fois et j'obtiens une erreur de compilation. J'ai copié le dossier jre dans le dossier "C: \ Users \ 8xy2ms \ Desktop \ smsModel \ smsModel".launch4j empaqueté erreur jre

Voici le code d'erreur:

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 

et voici le projet 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> 

Répondre

0

Dans mon cas, j'utilisais des options supplémentaires en elle. Annulez-les tous, et cela fonctionnera bientôt pour vous. Il suffit d'aller pour ceux qui sont obligatoires seulement.