You are right about the GUI context w.r.t OS Environment... After testing the jsp in linux, I tried running the same jsp in Win95, Tomcat 4.0... and the jsp page ran successfully.
Dayanand. -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Ottinger Sent: Tuesday, September 03, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: Re: sun/awt/X11GraphicsEnvironment not found (please try this and guide me of wh It's easy enough. What's happening is that the classes you're using are using an external GUI context. On Windows, the GUI context is always present. (I'm not even sure if Windows can run now without a GUI... which makes sense, given its name, but dedicates hardware to a resource you shouldn't need if you're running on a server.) On UNIX, however, the graphics context is provided by X; what's happening in all likelihood is that your server is running without an available connection to an X display (i.e., without auth to write to the contents of $DISPLAY). Thus, you need a headless system, which can be provided by JDK1.4 or by external libraries (see http://orionsupport.com for an example using PJA), or you need to provide writable access to an X framebuffer (which can be done via xvfb). =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
