tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles N. Harvey III" <>
Subject Re: java.awt.headless=true in tomcat startup
Date Fri, 04 Feb 2005 17:04:36 GMT
You set this somewhere in either the <tomcat-home>/bin/
or <tomcat-home>/bin/

If you don't want to do any of that, have an InitServlet that does

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

That will do the same thing.


Rodrigo Avila said the following on 2/4/2005 11:57 AM:

>I try to use some awt\swing classes to convert rtf strings to html in
>an jsp page. But I receive the following Exception:
>"Can't connect to X11 window server using ':0.0' as the value of the
>DISPLAY variable."
>But, to resolve this problem, I find the following tip:
>"assuming you're using a 1.4 JVM, add the following line to your startup
>$JAVA_COMMAND -Djava.awt.headless=true ..."
>But, how I put this option in the Tomcat startup?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message