How to resolve "no protocol specified error"

Lets see how we can resolve this error thrown out by OUI

>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-06-16_11-00-02AM. Please wait ...[oracle@oracle1 database]$ No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at java.awt.Toolkit$
        at Method)
        at java.awt.Toolkit.getDefaultToolkit(
        at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
        at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
        at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at javax.swing.SwingUtilities.loadSystemClass(
        at javax.swing.UIManager.setLookAndFeel(
        at oracle.install.commons.util.Application.startup(
        at oracle.install.commons.flow.FlowApplication.startup(
        at oracle.install.commons.flow.FlowApplication.startup(
        at oracle.install.commons.base.driver.common.Installer.startup(
        at oracle.install.ivw.db.driver.DBInstaller.startup(
        at oracle.install.ivw.db.driver.DBInstaller.main(
[oracle@oracle1 database]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0C:29:31:31:45
          inet addr:  Bcast:  Mask:
How to resolve

This is caused because you did not set the DISPLAY environment and enabled the access control.

[oracle@oracle1 database]$ export DISPLAY=
[oracle@oracle1 database]$ xhost +
access control disabled, clients can connect from any host
[oracle@oracle1 database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 3300 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4095 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed