Please register your RHEL version with RedHat first
First open Terminal and change permission to root then enter you password.
su -
You can skip this step if there is no installed JDK on you computer.
Run these 2 commands to check if there is any installed JDK.