How to set default Java version?

Posted by Matteo on Ask Ubuntu See other posts from Ask Ubuntu or by Matteo
Published on 2012-04-13T10:46:04Z Indexed on 2012/04/13 11:45 UTC
Read the original article Hit count: 377

Filed under:
|

I have followed all the instructions stated at this question, but am encountering some problems with the last part of it.

I actually have version 6.22 of java and would like to update to version 6.30.

So after moving the extracted directory java-6-oracle into /usr/lib/jvm I do not know what to do, since the script that is pointed out in the answer above updates from java 5 to java 6.

For sake of clearness here is output if I do an ls in dir /usr/lib/jvm:

matteo@matteo-ThinkPad-SL:/usr/lib/jvm$ ls -l

total 8

lrwxrwxrwx 1 root root 14 2011-07-12 15:18 default-java -> java-6-openjdk

lrwxrwxrwx 1 root root 14 2011-07-12 12:19 java-1.6.0-openjdk -> java-6-openjdk

drwxr-xr-x 10 root root 4096 2012-04-12 12:06 java-6.31-oracle

drwxr-xr-x 7 root root 4096 2012-02-24 14:43 java-6-openjdk

What should I do now?

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about java