The -splash jvm option doesn't seem to work...
Brought to you by:
grzegok
I don't get why the jvm -splash option doesn't work with launch4j whereas it works if I use it directly.
Here is my xml:
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>true</dontWrapJar>
<headerType>gui</headerType>
<jar>MathEOS.jar</jar>
<outfile>/path/to/file.exe</outfile>
<errTitle>Update your version of Java !</errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>true</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon>/path/to/file.ico</icon>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.7.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
<opt>-Dswing.aatext=true</opt>
<opt>-Dawt.useSystemAAFontSettings=lcd</opt>
<opt>-splash:spashscreen.png</opt>
</jre>
<versionInfo>
<fileVersion>1.6.36.0</fileVersion>
<txtFileVersion>1.6.36.0</txtFileVersion>
<fileDescription>Description</fileDescription>
<copyright>My Name</copyright>
<productVersion>1.6.36.0</productVersion>
<txtProductVersion>1.6.36.0</txtProductVersion>
<productName>My Product</productName>
<companyName>My Company</companyName>
<internalName>Product</internalName>
<originalFilename>file.exe</originalFilename>
<trademarks></trademarks>
<language>ENGLISH_US</language>
</versionInfo>
</launch4jConfig>
Is there anything wrong ?
Ok, I discovered that it actually works... But only if I choose to bundle the jre. If I let the wrapper find the jre, the -splash option is just ignored... Any idea ?
Can you also run it with option --l4j-debug and post the created logfile? It should work for the non-bundled JRE as well. I couldn't find anything in the help forums, but somehow this does not seem completely new...