2009-06-11 15:30:16 UTC
I don't want a bundled JRE and I've specified the following in my xml:-
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>console</headerType>
<jar>C:\Phoebus\java_distribution\cashbookuploader.jar</jar>
<outfile>C:\Finance\cashbookuploader.exe</outfile>
<errTitle>CashbookUploader</errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>true</customProcName>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon>CMMicon.ico</icon>
<jre>
<minVersion>1.5.0_11</minVersion>
<maxVersion></maxVersion>
<jdkPreference>jreOnly</jdkPreference>
</jre>
</launch4jConfig>
However when I try to run an ANT build I get the following error:-
[launch4j] Compiling resources
[launch4j] Generated resource file...
[launch4j] LANGUAGE 0, 1
[launch4j] 2 RCDATA BEGIN "1.5.0_11\0" END
[launch4j] 18 RCDATA BEGIN "0\0" END
[launch4j] 1 ICON DISCARDABLE "C:\\jbdevstudio\\workspace\\Cashbook Uploader Hibernate\\resources\\CMMicon.ico"
[launch4j] 10 RCDATA BEGIN "CashbookUploader\0" END
[launch4j] 21 RCDATA BEGIN "
http://java.com/download\0" END
[launch4j] 8 RCDATA BEGIN ".\0" END
[launch4j] 20 RCDATA BEGIN "32\0" END
[launch4j] 9 RCDATA BEGIN "true\0" END
[launch4j] 101 RCDATA BEGIN "An error occurred while starting the application.\0" END
[launch4j] 102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END
[launch4j] 103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END
[launch4j] 104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END
[launch4j] 17 RCDATA BEGIN "true\0" END
Any ideas where I am going wrong? This is driving me crazy!