cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Can't connect to X11 window server using '172.16.1.254:0.0'

Former Member
0 Kudos

Dear all,

i am installing sap4.7 in hp-ux, after installing CI, i start DI, in 17 th step it asking to install oracle by executing RUNINSTALLER.....just i open new termenal (xshell) with orasid user i executed RUNINSTALLER but after some time it will show like this----

.....................................................................................................................................................................................................................................................................................................................................................................................................................

/oracle/stage/920_64/Disk1/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.8848: Done

Initializing Java Virtual Machine from ../../stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/java. Please wait...

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

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)

at java.awt.Window.<init>(Window.java:183)

at java.awt.Frame.<init>(Frame.java:310)

at java.awt.Frame.<init>(Frame.java:289)

at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)

at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)

at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)

at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)

at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599)

How to resolve this issue, what is the problem.

Regards,

satish-k

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

on LINUX and UNIX, Java products need access to the Java.awt library to run graphic related methods.

Most versions of the Java.awt library on UNIX require a functioning X server. The X server and the DISPLAY environment variable also needs to be correctly set.

ADD these lines to the /etc/profile file...

  1. Start the X virtual frame buffer (Xvfb)

if [ -f /usr/X11R6/bin/Xvfb ]; then

/usr/X11R6/bin/Xvfb :1 -screen 0 1024x768x16

fi

  1. Set the DISPLAY variable for the X virtual frame buffer (Xvfb)

export DISPLAY=IP_address:1.0

regards,

kaushal

Former Member
0 Kudos

Dear Kaushal,

Thanks for update, please resend what lines i need to add in /etc/profile file.

Please send little bit clearly.

Regards,

satish-k

Former Member
0 Kudos

Hi,

add following line in /etc/profile


if  -f /usr/X11R6/bin/Xvfb ; then
/usr/X11R6/bin/Xvfb :1 -screen 0 1024x768x16
fi

then execute

export DISPLAY=IP_ADDRESS:1.0

regards,

kaushal

Former Member
0 Kudos

Dear Kaushal,

My problem is solved my x-shell (x-manager.)

Reagrds,

satish

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos