I also added the -Djava.awt.headless=true in the tomcat startup script but still get the same error
Simone ------------------------- Simone Chiaretta <http://www.piyosailing.com/S> www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic "Life is short, play hard" -----Messaggio originale----- Da: Simone Chiaretta [mailto:[EMAIL PROTECTED] Inviato: domenica 18 gennaio 2004 1.02 A: '[EMAIL PROTECTED]' Oggetto: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly Hello all, I get a strange error when try to run a code to generate a JPG on the fly from inside a servlet: java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.0_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory the libXp.so lib is a lib from X server... But I'm running the webserver on a just text server, so, no Xfree... I'm wondering if X is needed to use some awt methods (like the Toolkit.getImage())... or JPEGEncoder the piece of code that seems to generate the error is: Image image1 = Toolkit.getDefaultToolkit().getImage(sourceFileName) Thanx Simone ------------------------- Simone Chiaretta <http://www.piyosailing.com/S> www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic "Life is short, play hard"
