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 <[EMAIL PROTECTED]>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to