Stop Java Coffee Cup icon from appearing in the Dock on Mac OSX
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.