Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using <IP> as the value of the DISPLAY variable

I am trying to install Oracle 9i Database server software on CentOS 5.5 on an Amazon Cloud server through SSH(putty). When the runInstaller is invoked it throws the error -
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable

I tried the below steps

1. #  xhost +
xhost:  unable to open display ""
2. export DISPLAY=
3. export DISPLAY=:0.0
4 uncommented the below lines from /etc/ssh/sshd_config file
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes. And restarted sshd service.

But nothing helps and problem still persists. Tried to connect through 'XWinLogon' but unable to do so. Please let me know what can be done to set the display correctly and start the database installation.
Who is Participating?
OP_ZaharinConnect With a Mentor Commented:
- if you have My Oracle Support (MOS) contract, look for document ID 567004.1 on java.lang.InternalError: Can't connect to X11 window server using DISPLAY variable. the document explain in details step to overcome the problems.
- do you run the installer as the root user? run it as the oracle user instead.
CEHJConnect With a Mentor Commented:
Is it a gui installer? Do you have an X server running on the same box as Putty?
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

To simplify just start a vncserver (VNC) and you'll have a remote X desktop. That way you can even disconnect from the session while the installer finishes.

Do you know how to start vnc? Also after your .vnc directory creates, edit the xstartup file and uncomment first two the lines according to the comments you see in the file.

Something like:

# Uncomment the following two lines for normal desktop:
 exec /etc/X11/xinit/xinitrc

Then login and startup Oracle installer.
CEHJConnect With a Mentor Commented:
However much configuration you do, you're not going to be able to see a windowed installer on the box on which Putty's running without an X server also running on it
makk2010Author Commented:
I used the utility MobaXterm and was able to start the installer from it.
makk2010Author Commented:
ofcourse logging in directly as Oracle user(avoiding su ) allowed the runInstaller to start.
Yes, and the reason would be

"MobaXterm (formerly known as MobaXVT) is an enhanced terminal WITH AN X SERVER"

(my emphasis). See my last comment
makk2010Author Commented:
Not accurate but helpful
What is 'Not accurate'?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.