Friday, January 26, 2007

Java 1.50 on Ubuntu Dapper 6.06

hi folks...

Since Java on Ubuntu 6.06 default Repo was just on Version 1.40, here is the small step for upgrading your Java 1.4 on Ubuntu 6.06 to 1.50, hence thereis another java 1.60 was avaiable on java sites.

so hereis the step, download java, for this tip i'm just taking the JDK files
Setelah itu ubah attribut filenya menjadi file yang dapat di eksekusi, here is the command;
  • dwina@dhdwde$ sudo chmod a+x jdk-1_5_0_06-linux-i586.bin
after that we need to execute the program ;
  • dwina@dhdwde$ sudo ./jdk-1_5_0_06-linux-i586.bin
After execute the program, the directory name jdk1.5.0_06/ was there, we need to move the directory to the default directory of java on ubuntu 6.06
  • dwina@dhdwde$ sudo mv jdk1.5.0_06 /usr/lib/jvm/
after completion moved the directory we need to update the infromation
  • dwina@dhdwde$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.5.0_06/bin/java" 1
  • dwina@dhdwde$ sudo update-alternatives --set java /usr/lib/jvm/jdk1.5.0_06/bin/java
So check the java version;
  • dwina@dhdwde$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

;o))

No comments: