Launch4j jre必需的错误

时间:2012-05-13 09:31:22

标签: java launch4j

我第一次使用launch4j,我得到了系统的编译错误(在OSX和windows xp上也一样)。这是项目xml文件:

<launch4jConfig>
  <dontWrapJar>false</dontWrapJar>
  <headerType>gui</headerType>
  <jar>C:\Temp\QuotaSatellite\QuotaSatellite.jar</jar>
  <outfile>C:\Temp\QuotaSatellite.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>
  <manifest></manifest>
  <icon></icon>
  <jre>
     <path></path>
     <minVersion>1.6.0</minVersion>
     <maxVersion></maxVersion>
     <jdkPreference>preferJre</jdkPreference>
  </jre>
</launch4jConfig>

以下是windows xp上的日志:

Compiling resources
Generated resource file...

LANGUAGE 0, 1
2 RCDATA BEGIN "1.6.0\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

net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "C:\launch4j\bin\windres.exe": >CreateProcess error=2, Le fichier spécifié est introuvable

我也尝试过清单文件并得到了同样的错误。 为什么launch4j需要我的jar不需要的捆绑JRE? 非常感谢您的帮助

0 个答案:

没有答案