I use launch4j with java 1.8.0_92 to wrap an executable fat jar that has ~70k entries.
When executing the jar with
java -jar foo.jar
it works fine.
Executing the generated exe from that jar yields
Error: Invalid or corrupt jarfile C:\<path-here>\foo.exe
Note that setting dontWrapJar to true yields a fine executable.
Any help would be appreciated.
Regards,
Idiaka
this is the config file that produces the erroneous exe for reference:
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>console</headerType>
<jar>.\foo.jar</jar>
<outfile>foo.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon></icon>
<jre>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.8.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
</launch4jConfig>
Hi,
Could anyone please help me with this?
Cheers,
Idiaka