No, I am not calling getToolkit(), instead using getImage().

There is no need for X server to run as I am not displaying anythin on the std.
output and the X libraries are there.

Actually, from a server A which is running a CGI script, I am invoking a
servlet on another server B and passing some variables along with the
invocation. The servlet picks pre-exisiting images from the server B and
depending on the values passed, it manipulates the imageas and stores them back
to the hard disk of server B. The controls goes back to server A.

This servlet runs on Jserv/Linux/Blackdown JDK1.2

Any help is appreciated.
TIA
Gaurav

Augusto Sellhorn wrote:

> Papaya Head wrote:
> >
> > should you import sun.awt.motif.*?
> >
>
> Shouldn't have to. That's a Sun (unix) specific package that you're not
> supposed to mess with.
>
> > Though I have added the statement : Import  java.awt.Toolkit.*,  still
> > it doesn't work.
> >
> > java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
> >          at org.apache.jserv.JServServletManager.load_init(Compiled Code)
> >
> >          at org.apache.jserv.JServServletManager.loadServlet(Compiled
> > Code)
> >          at org.apache.jserv.JServConnection.run(Compiled Code)
> >          at java.lang.Thread.run(Compiled Code)
>
> Are you trying to call getToolkit() to do graphics on the server.
> The problem might be that graphics are not on or the DISPLAY variable
> is bad.
>
> What are you trying to do, and do you have DISPLAY set to :0.0 and
> X running ?
>
> Augusto
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to