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: , , ,

As you know, open suse 11 is already released. Now i would like to try to install java on OpenSuse. Here’s the steps:

  1. Download Java, you can find it from here.
  2. Open command line interface on your linux (eg: konsole, xterm etc) and change yourself as root.
  3. Copy the jdk you have downloaded to /opt directory # cp jdk-version-linux-i586.bin /opt
  4. Chmod the file so you could execute it.# chmod +x /opt/jdk-version-linux-i586.bin
  5. Execute the installer. ./opt/jdk-version-linux-i586.bin

If you found mistakes on your installation, probably you should remove the as-is /usr/bin/java by executing # rm /usr/bin/java. After that force the path by executing # ln -s /opt/jdk1.6.0_05/bin/java /usr/bin/java.

TAgs: , , ,