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 sun.com.
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment