I have an issue here setting up ASR with a server.
In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5
I downloaded and installed 1.6
But when I did java -version , its still showing 1.5
I captured the below from another system (cos I dont have access to the problem system now)
bash-3.00# java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
bash-3.00# cd /usr/jdk/
bash-3.00# ls -l
total 10
drwxr-xr-x 3 root bin 512 Nov 30 2007 instances
lrwxrwxrwx 1 root other 7 Dec 17 2007 j2sdk1.4.2_13 -> ../j2se
lrwxrwxrwx 1 root other 18 Dec 17 2007 jdk1.5.0_12 -> instances/jdk1.5.0
lrwxrwxrwx 1 root other 11 Dec 17 2007 latest -> jdk1.5.0_12
drwxr-xr-x 8 root bin 512 Nov 30 2007 packages
Instead of the pointing to 1.6, the JDK is still pointing to 1.5 as the latest similar to shown above. Please assume that 1.6 is already visible under the /usr/jdk directory.
Hi, following the below steps you can change your java version. I assume you allready installed java 1.6.18 but I cant see it under jdk directory, where did you install it?
If you have installed it another directory (maybe under opt) you might have problems when doing some installations which uses ANT (like Application Servers).
Ok install it under JDK then:
remove the old symbolic link of current java.
rm -r latest
define new latest sembolic link to 1.6.18 like
ln -s /usr/jdk1.6.0_18 java
Dont forget to add the latest version of java also to ENV path in .profile or .bash_profile if you use linux, then run it with
. .profile
or
. .bash_profile
so that running system sees it. Then check it with
echo $JAVA_HOME
or whatever you give the name to JAVA path.
4. at last check java version with
java - version
So sorry, Ok I assume you have it under the usr/jdk directory. pls Check your ENV and java path