Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tomcat shutting down when instantiating javax.swing.ImageIcon
on Fedora

Mikolaj Rydzewski

2006-12-13

Replies:

Mikolaj Rydzewski wrote:
>> My application works fine until the following line of code is reached.
>>
>> ImageIcon ii = new javax.swing.ImageIcon(myFile.getCanonicalPath());
>>  
> Try to run Tomcat with -Djava.awt.headless=true option set. i.e.:
>
> $ export CATALINA_OPTS="-Djava.awt.headless=true"
> $ ${CATALINA_HOME}/bin/startup.sh
>
And for the safety before running tomcat:

$ unset DISPLAY


--
Mikolaj Rydzewski <miki@(protected)>


Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.