Bonjour![]()
J'essaye d'utiliser Launch4J mais je me retrouve avec des erreurs que je ne comprend pas.J'applique le tuto à mon appli donc je n'ai pas les mêmes dossiers/nom de fichiers.
Voici mon organisation :
Voici le fichier XML de configuration :Un répertoire install de destination du futur .exe dans lequel il y a :
- Un dossier lib contenant :-un dossier contenant le jre-MonJar.jar (fonctionnel)
-mysql-connector-java-3.0.17-ga-bin.jar
Et voici le listing que me sort Launch4j :<launch4jConfig>
<dontWrapJar>true</dontWrapJar>
<headerType>gui</headerType>
<jar>.\lib\SGL.jar</jar>
<outfile>F:\Javprogrammes\Eclipse Workspace\Spellborn Guild Launcher\install\SGL.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<icon></icon>
<classPath>
<mainClass>com.bartimeus.sgl.FenetreLauncher</mainClass>
<cp>.\lib\SGL.jar</cp>
<cp>.\lib\mysql-connector-java-3.0.17-ga-bin.jar</cp>
</classPath>
<jre>
<path>jre1.6.0_03</path>
<minVersion>1.5.0</minVersion>
<maxVersion></maxVersion>
<dontUsePrivateJres>true</dontUsePrivateJres>
<initialHeapSize>16</initialHeapSize>
<maxHeapSize>256</maxHeapSize>
</jre>
</launch4jConfig>
Edit : si quelqu'un connait la balise pour colorer le code xml...Compiling resources
E:\Programmes\Launch4j\bin\windres.exe: can't popen `type C:\DOCUME~1\BARTIM~1\LOCALS~1\Temp\launch4j58316rc': Invalid argument
Generated resource file...
LANGUAGE 0, 1
1 RCDATA BEGIN "jre1.6.0_03\0" END
2 RCDATA BEGIN "1.5.0\0" END
18 RCDATA BEGIN "true\0" END
12 RCDATA BEGIN "-Xms16m -Xmx256m\0" END
21 RCDATA BEGIN "http://java.com/download\0" END
8 RCDATA BEGIN ".\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
15 RCDATA BEGIN "com.bartimeus.sgl.FenetreLauncher\0" END
16 RCDATA BEGIN ".\\lib\\SGL.jar;.\\lib\\mysql-connector-java-3.0.17-ga-bin.jar\0" END
14 RCDATA BEGIN ".\\lib\\SGL.jar\0" END
net.sf.launch4j.ExecException: Exec failed(1): E:\Programmes\Launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\DOCUME~1\BARTIM~1\LOCALS~1\Temp\launch4j58316rc C:\DOCUME~1\BARTIM~1\LOCALS~1\Temp\launch4j58317o![]()
Partager