Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

witus發表於2008-04-25

今天在linux上安裝oracle的時候,執行runInstaller命令時,系統報錯:

[oracle@linux201 Disk1]$ ./runInstaller
[oracle@linux201 Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2008-04-25_04-03-11PM/jre/bin/java. Please wait...
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.(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.(Window.java:188)
at java.awt.Frame.(Frame.java:315)
at java.awt.Frame.(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)

後來執行了一下命令:

xhost +oracle

後,問題就解決了

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11422417/viewspace-1002974/,如需轉載,請註明出處,否則將追究法律責任。

相關文章