I want to change the title of my java app on the osx menubar from the class name. I've tried putting this at the top of my main method but it does not work.
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("apple.awt.application.name", "app name");
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
Do I need a special library or something?