You need to do 'xhost +' on the X server machine, or xhost +machinename.
man xhost
Rob
----------
From: Santosh Dawara
To: ingo rockel; [EMAIL PROTECTED]; KIRKBRIDE Rob
([EMAIL PROTECTED])
Subject: Re: Using AWT Classes on Linux
Date: 01 December 2000 12:07
It seems to have helped, but I am stuck again ...
Xlib: connection to "machine.india.co.in:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Exception in thread "main" java.lang.InternalError: Can't connect to X11
window server using 'machine.india.co.in:0.0' as the value of the
DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:61)
Ingo Rockel wrote:
>
> Try:
>
> export DISPLAY=<your_machine_name_here>:0.0
>
> in the shell (if it is a bash) before starting the JavaApp.
>
> Ingo
>
> On -1 xxx -1, Santosh Dawara wrote:
>
> > Hi,
> >
> > I am having a slight problem with my X Setup,
> > I can't run any of the Java Graphics. Could
> > some one please help !
> >
> > Regards,
> > Santosh Dawara.
> >
> > The Error is reproduced here =>
> >
> > Exception in thread "main" 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
> > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:61)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:124)
> > at
> >
>java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
> > at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:59)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:124)
> > at java.awt.Toolkit$2.run(Toolkit.java:499)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
> > at
> > java.awt.TextComponent.enableInputMethodsIfNecessary(TextComponent.java:115)
> > at java.awt.TextComponent.<init>(TextComponent.java:109)
> > at java.awt.TextArea.<init>(TextArea.java:188)
> > at java.awt.TextArea.<init>(TextArea.java:126)
> > at
> > com.teamon.test.urldriver.URLCrawler.loadProperties(URLCrawler.java:997)
> > at com.teamon.test.urldriver.URLCrawler.main(URLCrawler.java:1036)
> >
> >
> > ----------------------------------------------------------------------
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
>
> ---------------------------------------------
> Ingo Rockel, eMail: [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> homePage: wolfsheim.x2.nu
> ---------------------------------------------
> "If Windows is the answer, it must have been a stupid question!"
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
<<< ==================== Original Email Header ==================== >>>
Received: from punt-2.mail.demon.net by mailstore for [EMAIL PROTECTED]
id 975671953:21:17944:20; Fri, 01 Dec 2000 11:59:13 GMT
Received: from karlasha.2kweb.net ([192.41.21.66]) by punt-2.mail.demon.net
id aa2114852; 1 Dec 2000 11:57 GMT
Received: (karlasha@localhost) by karlasha.2kweb.net (8.8.5) id DAA27099; Fri, 1 Dec
2000 03:59:53 -0700 (MST)
Resent-Date: Fri, 1 Dec 2000 03:59:53 -0700 (MST)
Sender: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 01 Dec 2000 16:32:10 +0530
From: Santosh Dawara <[EMAIL PROTECTED]>
Organization: Persistent Systems
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-3 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Ingo Rockel <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Using AWT Classes on Linux
References: <Pine.SOL.4.21.0012011002450.27126-100000@gorlois>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <[EMAIL PROTECTED]>
Resent-From: [EMAIL PROTECTED]
X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/4886
X-Loop: [EMAIL PROTECTED]
Precedence: list
Resent-Sender: [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]