Musings about technology and other neat stuff

BrT random header image

Disable dock icon for java programs in Mac OSX (howto)

December 7th, 2007 · 1 Comment

If you run a java program in OSX that uses the AWT library, by default the system shows a generic Java dock icon for it, even if the program does not have a GUI (e.g. it’s just using the library for image manipulation). To avoid showing the spurious dock icon, you have to set the java.awt.headless property to “true”. From the command line, this can be done like this:

java -Djava.awt.headless=true ...

This property can also be enabled from the code. For full details, see this article at

Tags: · ·

1 response so far ↓

  • 1  Dee // May 20, 2009 at 7:07 pm

    awesome!!! just what I was looking for.