-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
> I wrote many servlets, with JDBC too, and they run fine on my system.
> They ask me for a Graphic Counter, so I have tried to use for the 1st time
> AWT
> But I have always the same error:
>
> /usr/local/jdk117/bin/../lib/i586/green_threads/libawt.so: undefined
symbol:
> XtShellStrings (libawt.so)
> java.lang.UnsatisfiedLinkError: no awt in shared library path
> at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:341)
> at org.apache.jserv.JServConnection.run(JServConnection.java:197)
> at java.lang.Thread.run(Thread.java)
To use any object YOU MUST BE IN A GRAPHIC ENVIRONMENT (Xserver started),
even if you are running a servlet (that doesn't use any graphical device).
And your JServ has to be able to see this graph. environment
How I solve the problem:
1) In Jserver.properties I add these lines to see some environment
variables:
wrapped.env=LD_LIBRARY_PATH=/usr/local/jdk117/lib/i586/green_threads
#directory with shared libraries
wrapped.env=DISPLAY=[servername]:0
2) I restart Apache
3) Then I started Xserver
>From that moment everything was OK without starting Apache JServ manually!!
Marco
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]