Updating to JDK 1.5.0 on mepis

Mepis comes with the Blakdowns version of java, which is 1.4.2_04. I updated it with the latest JDK from sun as follows.


- Make sure you have execute permisions for the .bin file downloaded from sun


# ./your-downloaded-jdk.bin


# vi .bashrc


- Add the following two lines


export JAVA_HOME=your-new-java-home


export PATH=$PATH:your-new-java-home/bin


# su -


$ cd /usr/bin


$ rm java


$ ln -s 'your-new-java-home/bin/java' java


$ rm javaw


$ ln -s 'your-new-java-home/bin/javaw' javaw



Now you can test this with typing java -version on the shell


# java -version


java version "1.5.0"


Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)


Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)



Comments

Popular Posts