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 %