StackOverflow 上的首次海报。 第一次使用 Launch4j。
我使用Windows 11。 我启动了 Launch4j 的 GUI 版本(3.50)。 我尝试做尽可能少的改变。 我最终得到了以下 xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>Robert.jar</jar>
<outfile>Robert.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl></downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon>Robert.ico</icon>
<classPath>
<mainClass>com.robert_domain.robert_main</mainClass>
</classPath>
<jre>
<path>c:\Program Files\Java\jre-1.8</path>
<requiresJdk>false</requiresJdk>
<requires64Bit>false</requires64Bit>
<minVersion>1.8</minVersion>
<maxVersion></maxVersion>
</jre>
</launch4jConfig>
它确实创建了一个 exe,但是当我双击该 exe 时,它在主题行中出现错误。
我发布到 SourceForge 的 Launch4j 页面。 过去三天我的帖子一直处于“等待审核”状态。 我给房东发了邮件,但没有回复。
我很茫然。我不知道下一步该做什么。
有人可以帮忙吗?
使用“headerType”控制台构建它并从cmd运行,然后您应该从日志中获得更多详细信息。