Java Mailing List Archive

http://www.junlu.com/

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

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

Philipp Taprogge

2004-01-18

Replies:

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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.