How to launch java application from Dock, Mac

2019-01-29 01:07发布

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

标签: java macos dock
1条回答
Rolldiameter
2楼-- · 2019-01-29 01:30

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.

查看更多
登录 后发表回答