| [platform-swt-dev] SWT, AWT compatibility on OS X 1.3 with JDK 1.4.x |
Relevant bugs:
Radar #2786861
Description:
A server application that uses AWT for image processing will get a dock icon even though no user interface was presented to the user. The application will also be quit when the user logs out.
Workaround:
The notion of a headless AWT isn't officially supported until Java 1.4. But there is a workaround. If you launch the java process from the command line, add -Dcom.apple.backgroundOnly=true. If you have packaged the application as double-clickable, you can set the standard Info.plist key LSBackgroundOnly to a string value of 1. These do not prevent the application from being quit when the user logs out, but they will suppress a dock entry and menu bar.
Shasta Willson Lunar Logic