如何从Mac的Dock启动Java应用程序 [英] How to launch java application from Dock, Mac
本文介绍了如何从Mac的Dock启动Java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了一个Java Swing应用程序.效果很好.
I have created a Java Swing application. It works fine.
我已经使用jar bundler为该应用程序创建了应用程序文件(.app).
I have created application file (.app) for that application using jar bundler.
但是主要的问题是,如果我在Dock上单击它,则我的应用程序无法打开.我正在使用Mac OS.如何通过单击Dock来启动我的应用程序
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
谢谢 苏尼尔·库马尔·萨胡(Sunil Kumar Sahoo)
Thanks Sunil Kumar Sahoo
推荐答案
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
这是一个有效的示例.
这篇关于如何从Mac的Dock启动Java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文