Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
Hi All,
i am trying to open my Domain Utility command from Secure CRT and i am getting the Following error,
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':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.motif.MToolkit.<clinit>(MToolkit.java:93)
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 com.tibco.administrator.wizard.WizardDialog.setUIFont(WizardDialog.java:208)
at com.tibco.administrator.du.DomainUtility.a(DomainUtility.java:593)
at com.tibco.administrator.du.DomainUtility.main(DomainUtility.java:427)
please resolve my Probem ASAP as i am unable to run the domain utility command.
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0'
Hi All,
i tried to add the requested details xhost +localhost (here i gave my system IP address) and ran the command and it has said that the details have been addedd succsfully.
SO agin i went to Secure CRT and tried to rum my Domain Utility but again i am getting the same error as,
<Path>> ./domainutility
WRAPPER - start method threw an exception
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.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.motif.MToolkit.<clinit>(MToolkit.java:93)
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 com.tibco.administrator.wizard.WizardDialog.setUIFont(WizardDialog.java:208)
at com.tibco.administrator.du.DomainUtility.a(DomainUtility.java:593)
at com.tibco.administrator.du.DomainUtility.main(DomainUtility.java:427)
please provide me a solution to resolve this issue.
1. You're at the Linux console, right?
And you're in GUI mode (you have a desktop, with graphical icons, a menu bar, etc). Correct?
You are NOT at a "remote console", and you are NOT in "text mode". Correct?
You apparently need X windows to run "Domain Utility". If you're NOT in a GUI, all bets are off.
2. Try running "xclock". If you can run "xclock", then you should be able to run "Domain Utility".
3. If "xclock" fails the same way, then type this:
export DISPLAY=unix:0
xclock
4. If "xclock" now works, try "Domain Utility" again (from the same command prompt).
5. If "xclock" fails, please cut/paste the exact error message.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.