Latest Entries »

Sunday, January 27, 2013

Install Oracle Sun Java JDK on Linux

In this post, I would try and collate information about installing Sun Java JDK on various Linux platforms. Since the time licensing issues have come up, the distros have stopped shipping sun-java and thus we need to add additional repos to achieve the same. I have found a very diverse information with various methodologies how people have installed but none of them give a very holistic picture. Hope this post can become a one stop information for many people struggling out there to get the right information all at one place and thus would keep updating this post to add new and relevant information.

Installing Sun Java JDK on Ubuntu 10 and 11

## Install the package required for adding repositories 
deploy$ sudo apt-get install python-software-properties
deploy$ sudo add-apt-repository ppa:ferramroberto/java
deploy$ sudo apt-get update
deploy$ sudo apt-get install sun-java6-jdk
deploy$ sudo update-java-alternatives -s java-6-sun

## Adding to environment Variable
deploy$ sudo vi /etc/environment
## Append the line - JAVA_HOME="/usr/lib/jvm/java-6-sun"



0 comments: