is a pretty straight forward task. It does have a few complications though. Remember the old days where you went to java.sun.com? Now that redirects you to an Oracle page and ultimately you end up here to download the goods:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Once you get through the links you’ll be presented with two choices to download:
Well, well, what to do? Since we are talking about OEL here we know that we have an rpm based system and we can install as root for a system-wide install so let’s opt for the first download, the rpm-bin. We know it is an rpm based system since OEL is binary compatible with Redhat. Generally speaking, select the Linux RPM in self-extracting file (if you have root access) or the Linux self-extracting file (if you don’t).
Having downloaded your file you need to upload it to the server and then execute:
chmod a+x <your file name>
And then run the application like this:
./<your file name>
Follow the prompts and the rest of the install is pretty straight forward.
Finally, you may want to edit your /etc/profile and add some things like JAVA_HOME (likely /usr/java/<version>) and CLASSPATH (likely something like $JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.:..)