The Artima Developer Community
Sponsored Link

Java Answers Forum
I now program works but problem with display

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sid Northfield

Posts: 20
Nickname: northfield
Registered: Aug, 2002

I now program works but problem with display Posted: Aug 23, 2002 4:35 AM
Reply to this message Reply
Advertisement
I am getting this display program. The program works on windows and linux but not where I favour to work from.

[sidte5115@node00 w0109699]$ cd Bank
[sidte5115@node00 Bank]$ appletviewer NorthfieldBanque.java
Xlib: connection to "whale.cscs.qmw.ac.uk:49.0" refused by server
Xlib: Client is not authorized to connect to Server
Exception in thread "main" java.lang.InternalError: Can't connect to
X11
window
server using 'whale.cscs.qmw.ac.uk:49.0' as the value of the DISPLAY
variable
.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:5
9)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment. java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at sun.applet.AppletViewer.<init>(AppletViewer.java:139)
at
sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.jav
a:81)
at sun.applet.AppletViewer.parse(AppletViewer.java:1035)
at sun.applet.AppletViewer.parse(AppletViewer.java:969)
at sun.applet.Main.run(Main.java:140)
at sun.applet.Main.main(Main.java:82)
[sidte5115@node00 BankCW1]$


I have tried

man xhost


I have read this very small manual but it doesn't help.

I have tried 4 different servers: whale, cetacean, porpoise and
dolphin. All gave the same error.

The last server I tried via dolphine, it works on this but the laboratory is favoured by first year undergradutes.

Topic: Exe file Previous Topic   Next Topic Topic: Non-Rectangular windows using Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use