首页

在Centos安装oracle.x64_11gR2报"No protocol specified...NoClassDefFoundError.."异常

标签:oracle,exception,centos,11g,r2,xhost,NoClassDefFoundError,runInstaller     发布时间:2017-01-20   

一、异常描述

centos系统安装oracle_x64_11gR2_database版本,在执行./runInstaller命令后,抛出"No protocol specified..Exception in thread "main" java.lang.NoClassDefFoundError.."异常,具体如下所示

[oracle@xoms database]$ ./runInstaller @b@Starting Oracle Universal Installer...@b@Checking Temp space: must be greater than 120 MB.   Actual 41770 MB    Passed@b@Checking swap space: must be greater than 150 MB.   Actual 8015 MB    Passed@b@Checking monitor: must be configured to display at least 256 colors@b@    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<@b@Some requirement checks failed. You must fulfill these requirements before@b@continuing with the installation,@b@Continue? (y/n) [n] y@b@>>> Ignoring required pre-requisite failures. Continuing...@b@Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-01-18_04-06-03PM. Please wait ...[oracle@xoms database]$ No protocol specified@b@Exception in thread "main" java.lang.NoClassDefFoundError@b@	at java.lang.Class.forName0(Native Method)@b@	at java.lang.Class.forName(Class.java:164)@b@	at java.awt.Toolkit$2.run(Toolkit.java:821)@b@	at java.security.AccessController.doPrivileged(Native Method)@b@	at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)@b@	at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)@b@	at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)@b@	at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)@b@	at java.lang.Class.forName0(Native Method)@b@	at java.lang.Class.forName(Class.java:242)@b@	at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)@b@	at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)@b@	at oracle.install.commons.util.Application.startup(Application.java:758)@b@	at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)@b@	at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)@b@	at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)@b@	at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)@b@	at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

二、解决步骤

1. 切换root账号,如下所示

[oracle@xoms database]$ su  root@b@Password:

2.执行命令xhost +,如下所示

[root@xoms database]# xhost +@b@access control disabled, clients can connect from any host

3.再切换oracle继续安装,问题解决了