java (java -version)

hi
my box is a global zone with no local zones and the command java -version shows as "1.5.0_26".

now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to create a soft link which will point to the version jdk1.5.0_24

Java is using symbolic links to point to current version by default:

root@xxx # ls -l /usr/java
lrwxrwxrwx   1 root     other         15 Feb 20  2011 /usr/java -> jdk/jdk1.6.0_22

If after installation of the new version that link didn't get updated, then you can do it by yourself. In case of any problems just revert back the link to point to previous java version.

Installation of java won't update symbolic link. You need to do it manually. You can have multiple versions of java simultaneously on server.

FYI, default java version installed with solaris doesn't include java development kit, it is just java runtime enviornment.