My Java tool doesn't work anymore when used with the Java bridge…

I have an utility that's working correctly when used from the command line, I have included it in my Cocoa application and I call it from the Java bridge but it hangs !
If the Java code you have written make some indirect reference to AWT you have to add System.setProperty("java.awt.headless", "true"); in your code. See Sun site for more info.