Obtain standard Java…and then put it in a standard place.

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
-Run it:
Before you can run the file it has to be executable (done with chmod)

root@greeny:/usr/local# chmod a+x jre-6u23-linux-x64.bin
root@greeny:/usr/local# ./jre-6u23-linux-x64.bin

on the next screen you’ll see a license repeatedly hit <enter> (or ‘f’ to skip) until you see
Please enter “yes” or “no”.

Do you agree to the above license terms? [yes or no]

Type yes <enter> if you agree, then you see it basically “unzip” the file into a directory
…inflating: jre1.6.0_23…
-Create a symbolic link (more on why, later)

root@greeny:/usr/local# ln -s jre1.6.0_23/ java


operationlinux@greeny:~$ vi ~/.bashrc
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
Source your bashrc, reloads variables.
…or could just launch a new shell
operationlinux@greeny:~$ . .bashrc


operationlinux@greeny:~$ java -version
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.”

This entry was posted in Java, Linux. Bookmark the permalink.

2 Responses to Obtain standard Java…and then put it in a standard place.

  1. Grow lights says:

    Do you mind if I quote a few of your posts as long as I provide
    credit and sources back to your blog? My blog is in the very same niche
    as yours and my visitors would genuinely benefit from a lot of the information you provide here.
    Please let me know if this ok with you. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>