Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在Linux上运行,我使用launch4j打包一个exe。
我将 exe 复制到我的 Windows 7 VM 中,然后运行它。
什么也没有发生。
我用 --l4j-debug 运行它,但仍然没有任何反应(至少,如果有日志文件,我找不到它)。
我在这里缺少一些诊断技术吗?
创建 EXE 的控制台版本(在“标题”选项卡中,将“标题类型”从“GUI”更改为“控制台”)并从 CMD 提示符运行它。
您很可能会在控制台中看到异常消息,这将解释您的应用程序无法启动的原因。
.jar 文件必须是可执行的 JAR 文件。确保它是并尝试使用可执行 jar 文件创建 .exe 文件。这应该解决它!