Tuesday 30 November 2010

Installing Java SDK Linux - Ubuntu

Having never used Linux before when you first starting using any Linux flavor, even the most simplest of tasks performed under Microsoft operating systems can cause you some trouble.

For programming and general purpose user I required  Java JDK and JRE installed on my Ubuntu machine. See basic steps below on how this install takes place.

Installation of Java JRE

You can download the source code or self extracting binaries from the Sun Java site, however the quickest way on this OS is to complete the following:

1. Open a terminal window
2. Run sudo vi '/etc/apt/sources.list'
3. Add the following line to the bottom of the file:
deb http://archive.canonical.com/ lucid partner
4. Run sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
5. Accept all license terms etc..
6. Run java from terminal window to confirm installation

Installation of Java JDK (for developers)


You can download the source code or self extracting binaries from the Sun Java site, however the  quickest way on this OS is to complete the following:

1. Open a terminal window
2. Run sudo apt-get install sun-java6-jdk
3. Run java -version to confirm installation

No comments:

Post a Comment