Re: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-18 Thread Philipp Taprogge
Hi!

Simone Chiaretta wrote:
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)
Indeed many of the image manipulating capabilities of java.awt need a 
running X-server to connect to. I have not yet used the new headless 
feature, but afaik all your classes that use awt components but do not 
need a head have to implement the new headless interface. Have you 
done that?

HTH

		Phil

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


R: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-17 Thread Simone Chiaretta
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"
 



[maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-17 Thread Simone Chiaretta
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
  www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"