The Artima Developer Community
Sponsored Link

Java Answers Forum
graphic game does't start with ssh-connection

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
Julia

Posts: 6
Nickname: julia
Registered: Nov, 2002

graphic game does't start with ssh-connection Posted: Nov 30, 2002 11:13 AM
Reply to this message Reply
Advertisement
Hello!
I have trying to start a game in unix environment with ssh-connection.
I have done javac *.java all of my classes.
I've got this kind of error.
Do this mean that with ssh-connection to another computer
I can't run graphic games, only
games of "character type" ?

-----------------------------------------------------

kosh ~/battleshipproject 243 % java BattleshipGame
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 (X11GraphicsEnvironment.java)
at sun.awt.X11GraphicsEnvironment.<clinit> (X11GraphicsEnvironment.java:63) (pc 26)
at java.lang.Class.forName0 (Class.java)
at java.lang.Class.forName(java.lang.String) (Class.java:120) (pc 5)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (GraphicsEnvironment.java:58) (pc 24)
at java.awt.Window.<init>(java.awt.GraphicsConfiguration) (Window.java:186) (pc 70)
at java.awt.Frame.<init>(java.lang.String,java.awt.GraphicsConfiguration) (Frame.java:315) (pc 2)
at java.awt.Frame.<init>() (Frame.java:262) (pc 7)
at javax.swing.JFrame.<init>() (JFrame.java:141) (pc 1)
at Frames.<init> (Frames.java:14) (pc 1)
at BattleshipMain.main (Battleship.java:4) (pc 4)
kosh ~/ battleshipproject 244 %

------------------------------------------------------------

Topic: Rs232 - Java comm api Previous Topic   Next Topic Topic: Linking two classes

Sponsored Links



Google
  Web Artima.com   

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