Ubuntu 12/13 install and configure Java JRE

1. Download JRE 7 from Oracle website.
2. Unarchive the file:
[code language=”bash”]
tar zxpvf jre-7u25-linux-x64.tar.gz
[/code]
3. Create the installation directory
[code language=”bash”]
sudo mkdir -p /usr/lib/jvm/
[/code]
4. Move the unarchived directory in the newly created one
[code language=”bash”]
sudo mv ./jre1.7.0* /usr/lib/jvm/jre1.7.0
[/code]
5. execute this wonderful command:
[code language=”bash”]
sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3
[/code]
Done.
You can see the java version doing:
[code language=”bash”]
java -version
[/code]

KISS

Leave a comment

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