There are many tutorials on this subject, but you can use the CLI (command line interface) that is easier and simpler. For Java 5, you jsut have to execute:

sudo apt-get install sun-java5-jdk

And for java6, you can execute

sudo apt-get install sun-java6-jdk

Simple isn’t it. You can also Update the JDK (java development kit) by executing.

sudo update-alternatives –config java

I did finding those command beneficial when i was installing OpenBravo. An open source Point of Sales software that is cross platform build with Java.

Tags: , , ,