Thanks Ernie for your prompt response!
I just set the DISPLAY variable to the IP of the machine
with no luck, the error now is:
java.lang.InternalError: Can't connect to X11 window server using
'129.50.0.202:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
Set your display variable to include the machine name or ip address.
Assuming a machine name of orion
Assuming orion has an ip address of 12.345.67.890
set your display variable to be one of the two:
orion:0.0
or
12.345.67.890:0.0
this should solve your problem
Ernie Svehla
IntelliObjects Inc.
Vasile Curelea wrote:
>I'm having trouble running HelloWorldGraphics example from Jason Hunter's
>book,
>shows a long list of exceptions...
>and a
>ROOT cause beginning with:
>
>java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as
>the value of the DISPLAY variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName0(Compiled Code)
>......
>
>Seems to me that the problem is somewhere in settings, tomcat needs access
>to
>the X server. The book explanation at the bottom of the page doesn't tell
>me much.
>I would appreciate any help in getting this running.
>I have to mention here that I'm using Solaris 2.6 with JakartaTomcat 4.0.1
>against JDK 1.2.2
>
>Thanks in advance! vasile
>
>
___________________________________________________________________________
>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