java.lang.InternalError: Can't connect to X11 window server
Hello....
I am trying to access netbeans from the server. For that I am first doing a xhost and then telnetting to the server and then giving netbeans. It is displaying the error ... can't connect to x11 window server. Please see the error as given below. and kindly guide me to use netbeans from server. Linux version is PCQ Linux. //=============== ERROR =======================// [devSerj@dev14 ~]$ xhost svr1 svr1 being added to access control list [devSerj@dev14 ~]$ telnet svr1 Trying svr1... Connected to svr1 (svr1). Escape character is '^]'. PCQLinux 2005 (WhiteHope) Kernel 2.6.10-1.741_FC3 on an i686 login: devSerj Password: Last login: Mon Sep 25 09:58:37 from Dev14 [devSerj@svr1 ~]$ netbeans java.lang.InternalError: Can't connect to X11 window server using 'dev14:0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:96) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.Toolkit$2.run(Toolkit.java:821) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804) at javax.swing.UIManager.initialize(UIManager.java:1262) at javax.swing.UIManager.maybeInitialize(UIManager.java:1245) at javax.swing.UIManager.getDefaults(UIManager.java:556) at javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.java:63) at org.openide.filesystems.FileUtil.<clinit>(FileUtil.java:49) at org.netbeans.core.NonGui.getUserDir(NonGui.java:118) at org.netbeans.core.NonGui.getLogDir(NonGui.java:147) at org.netbeans.core.CLIOptions.initialize(CLIOptions.java:192) at org.netbeans.core.Main.start(Main.java:304) at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90) at java.lang.Thread.run(Thread.java:595) [devSerj@svr1 ~]$ |
My first guess would be that you need to set the DISPLAY environment variable to the correct value allowing the X session to be redirected from the server to your workstation. Currently is says that this value is "dev14:0.0", does this value work for other X sessions from the same machine?
|
All times are GMT -5. The time now is 04:19 AM. |