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 12-21-2010, 02:07 PM   #1
chakrinu
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
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.

Regards,
Srinivas Chakravarthy
 
Old 12-21-2010, 03:02 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
It's probably a permissions issue.

SUGGESTION:
If you can run X at all, try typing "xhost +localhost" in another Window.

WARNING:
"xhost +<anything>" is a potential security risk. Use it with caution!!!
 
Old 12-21-2010, 04:15 PM   #3
chakrinu
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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.


Regards,
Srinivas Chakravarthy
 
Old 12-21-2010, 06:59 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, again -

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.

'Hope that helps .. PSM
 
  


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 using 'localhost:0.0' Respinoza Linux - Newbie 8 01-26-2010 08:38 PM
Cannot connect to X11 window server using ":).0" as DISPLAY variable cclack Linux - Newbie 4 09-06-2007 09:32 PM
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

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

All times are GMT -5. The time now is 01:25 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