OBTAIN .bin file
-Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
-The JRE is sufficient (if you’re asking you won’t need the JDK) part way down the page is “Download JRE”, click it.
-On the next page you’ll see a Platform drop down, since this blog is all about Linux I’m installing on “Linux x64″
-Download the non-rpm edition, in my case it’s called “jre-6u23-linux-x64.bin”
INSTALL in a standard location
Now that you downloaded the .bin file above follow these steps
-Become the root user
-Place the bin file in /usr/local
Before you can run the file it has to be executable (done with chmod)
on the next screen you’ll see a license repeatedly hit <enter> (or ‘f’ to skip) until you see
Please enter “yes” or “no”.
Type yes <enter> if you agree, then you see it basically “unzip” the file into a directory
-Create a symbolic link (more on why, later)
ALLOW YOUR SHELL TO USE THIS NEW JAVA
Source your bashrc, reloads variables.
…or could just launch a new shell
operationlinux@greeny:~$ . .bashrc
TEST YOUR SHELL CAN USE JAVA
java version “1.6.0_23″
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
“Oracle and Java are registered trademarks of Oracle and/or its affiliates.”