Hi,
On Fri, 14 May 1999, Scott Liu wrote:
SL |I was trying to run an example of "Hello World graphics" from the book
SL |of "Java Servlet Programming" by Jason
[...]
SL |[13/05/1999 18:38:42:031] (ERROR) ajp11: Servlet Error:
SL |java.lang.InternalError: Can't connect to X11 windo
SL |w server using ':0.0' as the value of the DISPLAY variable.: Can't
SL |connect to X11 window server using ':0.0
SL |' as the value of the DISPLAY variable.

The Problem is, that the awt-Classes need a running X-Server (i.e. the
native peer) in order to have a graphic context to render into; this is
because complicated operations (like font rendering) is done there.

So you've to run a X-Server on that machine (or on another machine), and 
set the DISPLAY-Environment Variable appropriately (The error above
implies, that the VM tries to use the localhost).

Since the X-Server is protected against anyone who is not the current user
of the X-Server, you've to allow the X-Server access with the
xhost-Utitlity:
  xhost +<servername>
replace <servername> with the name of the machine the JServ-VM is running.

good luck,
  -hen
---
Henner Zeller                                 [EMAIL PROTECTED]
 PGP pub key [77F75B39]: finger [EMAIL PROTECTED] 

 "One difference between SuSE and Red Hat is that the former operates in a
  country where people don't sue each other over coffee being too hot."
                                                            Linus Torvalds




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to