Install Java JDK (Java SE Development Kit)
Java JDK: Java bundle for software developers, incorporates a complete JRE in addition to apparatuses for creating, investigating, and observing Java applications..
First of all, attempt to see if you have the correct repository:
# yum search java | grep 'java-'
This is going to return