When my application written in Java
with SWT
runs under OS X
, both from under Eclipse
and from jar
, its name in
The only answer that worked for me is here. In short:
Using JDK8, you can set the
apple.awt.application.name
property to affect the Application menu name.However, Martijn Courteaux’s warning that you must do this before any AWT classes are loaded still applies. And AWT classes will be loaded before your main() method runs if it lives in a subclass of JFrame.
In other words, set apple.awt.application.name
and do it before creating the JFrame.
P.S. If you're trying to change the dock application title, this command might work:
java -Xdock:name=Alfabet