Saturday, November 21, 2009

Java, Image Processing and OSX

A little annoying thing happens, when you do image processing in Java, using Apple OS X: although your code supposed to run in background, you still notice some additional process, that triggers Quartz and something appears on a Dock.

To cure this, you need to run AWT head-less. To do this, add a system property in your main() right before anything else:

System.setProperty("java.awt.headless", "true");

No comments: