I know there are a lot of questions similar to mine, but I actually couldn't solve my problem even after reading all of them.
I have a Java application that as soon as it starts it goes on tray. The problem is on Mac, because only there the icon is in the tray bar AND in the Dock.
I want to get rid of the Dock icon.
I did already a number of trials:
try to wrap my jar in a ".app" folder and writing an Info.plist file. I inserted the LSUIElement and set it to "1" or to "true". This hides the application Icon, but shows an ugly grey icon terminal-like that remains in the terminal.
Tell me even if you have any ideas or other ways to bypass this.
thankyou.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…