Stop Java Coffee Cup icon from appearing in the Dock on Mac OSX Stop Java Coffee Cup icon from appearing in the Dock on Mac OSX hadoop hadoop

Stop Java Coffee Cup icon from appearing in the Dock on Mac OSX


Like @EGHM said, it's -Dapple.awt.UIElement=true, but with no quotes. At least it works for me (OS X 10.7.5).

If you happen to be using Eclipse, you can add this JVM argument globally in Preferences → Installed JREs:

enter image description here


Like @EHGM and @Nelson pointed out, -Dapple.awt.UIElement=true needs to be added as an argument to the JVM.

You can set it globally for all java applications launched from the command line (or a shell) by adding it to the JAVA_TOOL_OPTIONS environment variable.

export JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true"

You could add the export statement to your $HOME/.bashrc or whatever startup script relevant to the shell you're using.


Try -Dapple.awt.UIElement="true"