gpt4 book ai didi

java - launch4j 捆绑 JRE 错误 ."This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted"

转载 作者:行者123 更新时间:2023-12-01 21:15:27 25 4
gpt4 key购买 nike

我第一次使用 launch4j 并收到以下错误。这是launch4j错误日志。

Compiling resources
Generated resource file...
LANGUAGE 0, 1
2 RCDATA BEGIN "1.5.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

这是生成的 xml 文件

<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>/DesktopApp/launch4j/applicationname.jar</jar>
<outfile>/DesktopApp/launch4j/applicationname.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon></icon>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<minVersion>1.5.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>

非常感谢您的帮助。如果 launch4j 有替代方案,请告诉我。

最佳答案

我试图使用 *.png 文件作为我的图标,但它需要 *.ico。一旦我删除<icon>...</icon>从我的配置文件中,这个错误消失了。

关于java - launch4j 捆绑 JRE 错误 ."This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20089597/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com