http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html# xvfb
http://www.jfree.org/phpBB2/viewtopic.php?t=1012 This line of code works if you have a newer version of java. System.setProperty("java.awt.headless","true"); -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, October 31, 2004 10:00 PM To: [EMAIL PROTECTED] Subject: How to resolve the "awt.headless" error ? Hi List : I wrote a servlet that uses awt/graphic to draw a picture and then shows it on the browser. On windows platform , it works fine. But on UNIX(my OS is Debian Linux), I run across a problem : java.awt.headless I thinhk many of you might know this is caused by the commucation failure between application (in this case : my servlet) and X. Some articles on internet said I can use "-Djava.awt.headless=true" in my catalina_opts or java_opts to resolve this problem. But I am sure it can not resolve this problem. Does anyone have any idea ? Thanks in advance. Ken Hu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
