How to launch java application from Dock, Mac

六月ゝ 毕业季﹏ 提交于 2019-11-30 09:47:28

问题


I have created a Java Swing application. It works fine.

I have created application file (.app) for that application using jar bundler.

But the main problem is that my application does not open if I click it on the Dock. I am using Mac OS. How I can launch my application by clicking on Dock

Thanks Sunil Kumar Sahoo


回答1:


If you are using Apple's JavaApplicationStub, diagnostic output from the launch process may be obtained as follows:

$ export JAVA_LAUNCHER_VERBOSE
$ ./your.app/Contents/MacOS/JavaApplicationStub

Here's a working example.



来源:https://stackoverflow.com/questions/2928253/how-to-launch-java-application-from-dock-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!