Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java -Djava.awt.headless=true

843841Dec 30 2005
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2006
Added on Dec 30 2005
0 comments
557 views