java -Djava.awt.headless=true
I am using Tomcat on a Solaris box.
When I try and set the java.awt.headless property as a command line argument , in JAVA_OPTS , in the shell script it gets completely ignored.
I have put a class which i can see is being called on startyuop and does :
System.setProperty("java.awt.headless", true)
What is amazing is that the first time this is executed I get a headless exception in Crystal CLear - I am using Java 1.4.2.
If i pop the stack frame and ontinue down the line it works fine.
What is going on - How can the first call fail and the second work - they are the same code.