LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-25-2006, 05:21 AM   #1
serjith
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Smile 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 ~]$
 
Old 09-25-2006, 09:45 AM   #2
MassDosage
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Kubuntu
Posts: 75

Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. defa0009 Linux - General 15 02-18-2022 08:09 AM
Can't connect to X11 window server kofibull Linux - Newbie 10 06-16-2006 11:47 PM
Can't connect to X11 window server suresheva31 Linux - General 0 10-19-2004 02:17 PM
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window serve paragvd Programming 4 10-05-2004 03:35 AM
Can't connect to X11 window server Checking operating system version: must be redha pmarino Linux - General 2 09-20-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration