简体   繁体   English

install4j启动器在macOS上不起作用

[英]install4j launcher doesn't work on macOS

I have a Java project and I'm using Install4J to deliver and launch. 我有一个Java项目,正在使用Install4J进行交付和启动。 On Windows and Linux anything is fine, but on Mac the launcher app doesn't work (it appears for a moment then exits). 在Windows和Linux上,一切正常,但在Mac上,启动器应用程序不起作用(出现一会儿然后退出)。 Media for macOS is macOS single bundle. 用于macOS的媒体是macOS单捆绑包。

macOS version is 10.13.2 (17C88) and Install4J version is 7.0.3. macOS版本是10.13.2(17C88),而Install4J版本是7.0.3。

LE: The updated question is how can I see the console log or stderr output. LE:更新后的问题是如何查看控制台日志或stderr输出。

You can execute the application bundle from the command line with 您可以使用以下命令从命令行执行应用程序捆绑包

MyApp.app/Contents/MacOS/JavaApplicationStub 

to see the standard error output. 查看标准错误输出。 If nothing is printed, execute it like this 如果什么也没打印,请像这样执行

INSTALL4J_LOG=yes MyApp.app/Contents/MacOS/JavaApplicationStub 

to get debugging information from the native launcher. 从本地启动器获取调试信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM