6

我第一次使用 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?您的帮助将不胜感激

4

0 回答 0