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
# vi .bashrc
- Add the following two lines
# 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)