Powered By

Powered by Blogger

Minggu, 11 April 2010

JDK Linux Update Script

WebUpd8 reader Bruce Ingalls sent us script which should make it easy for users to upgrade JDK. The script doesn't download JAVA or install it, but after you do that it updates the the path to the new JDK location.

Why use it?

Well, for instance JDK 1.6.0_19 was recently released and instead of creating symbolic links after installing it (which is not the recommended way to do it), you can use this script.


How to use JDK Linux Update Script



After downloading JDK from HERE, extract it and place the extracted folder to /usr/local/

Then simply run the script. It will detect your installed version and update to the new one.

To download and run the script, simply paste this in a terminal:
sudo apt-get install zenity
wget http://webupd8.googlecode.com/files/jdk-update.sh
chmod +x jdk-update.sh
sudo ./jdk-update.sh

Tidak ada komentar:

Posting Komentar