Installing Java Runtime Environment on Ubuntu 11.10

Hiya, last night finally we managed to have a time to install Ubuntu 11.10 Oneiric Ocelot in our machine (actually one netbook, one laptop, and one desktop). What we did after that 
other than trying all background images and themes?? We try to recover every applications we have at previous ubuntu version. Actually me (This's Al speaking) have a concern to installing JRE (Java Runtime Environment). Since 10.04, as far as I know, JRE from Sun is not included in official repository anymore. but we still can using archive.canonical.com partner repository in order to install it.

Aaaaand, my prediction is right. Up 'til today archive.canonical.com didn't provide Sun JRE for oneiric, thus forcing us to search another way from reading ancient race fossils DNA. (Too much for just installing JRE, just use Google you know).  Good for you who lazy enough to use google but lucky enough to drift aimlessly to our blog, we are here to provide you with the information.

We will installing JRE using binary file, and this tutorial only works for 32-bit linux especially ubuntu 11.10, so if you are using almighty-DOS just go away then. Firstly, you can download the binary file here

While you're waiting for the file to completely downloaded, open your terminal please, and we will work as root. Create the workplace in /opt, just copy paste command below

sudo mkdir -p /opt/java/32bit

Move your downloaded files (jre-6u27-linux-i586.bin) there, and change the permission so the file is executable.

sudo chmod 755 /opt/java/32bit/jre-6u27-linux-i586.bin

Change your current directory to /opt/java/32bit, and execute the file using ./jre-6u27-linux-i586.bin

Wait 'til the process is finished, and now we will tell your system to installing our new java version

sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/32bit/jre1.6.0_27/bin/java" 1

And finally you'll need to tell again the system that our workplace is a default path for JRE

sudo update-alternatives --set java /opt/java/32/jre1.6.0_27/bin/java
Just like that, and you can finally run java app in your oneiric. For the test, buy Minecraft sandbox games, I recommed it to you. (Well, playing Minecraft is my purpose in the first place to install JRE :p)

Comments