If you encountered error installing Java JDK, it is due to limitation of installing 32-bits application in 64-bits environment. Java will be installed with errors, and will not function properly.
Perform below actions to fix the issue.
Step 1: Uninstall Java
yum remove java
Step 2: Download and copy file into /root/Dekstop. Run the command to install the component.
cd /root/Desktop rpm -ivh libgcc-4.8.5-28.el7.i686.rpm
Step 3: Install required component for 32-bits application
yum install libgcc.i686
yum install ld-linux.so.2
Step 3: Reinstall Java