LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   X server problem (https://www.linuxquestions.org/questions/programming-9/x-server-problem-454575/)

kofibull 06-14-2006 12:51 AM

X server problem
 
I have this problem using linux(using Suse 9.3) and have a test program (graphics) graph.class, when I run it I get this error
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:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at javax.swing.JFrame.<init>(JFrame.java:198)
at JPanels.<init>(JPanels.java:15)
at JPanels.main(JPanels.java:11)
If I run it on the linux machine, it runs fine, but when I ssh into the box and try to run it I get this error. Y is this so an any solution.

Kofi

crabboy 06-14-2006 08:33 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...d.php?t=453393


All times are GMT -5. The time now is 10:28 AM.