Hi Martin,
The machine is solaris 2.6 and I have telnet only access to it
did the command indicated

# ./xhost +
./xhost:  unable to open display "129.50.0.202:0.0"

and the ROOT CAUSE error changed to:

java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName0(Compiled Code)
           at java.lang.Class.forName(Compiled Code)
           at java.awt.Toolkit$2.run(Toolkit.java:499)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)

.......................

Any help is appreciated. vasile




If the machine where you 're running the x-server on is a unix,
you may need to issue the command:

xhost +

to authorize clients to connect to the display.

Regards,

Martin


-----Original Message-----
From: PUB: Vasile Curelea [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 22 de Noviembre de 2001 06:38 p.m.
To: [EMAIL PROTECTED]
Subject: Re: Running HelloWorldGraphics


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

Reply via email to