java -version still returns old java version. I have red hat linux
I installed jdk 1.5 int eh follwing path and updated the bask profile and did a source but still the java version shows 1.4
JAVA_HOME=/usr/local/jdk/jdk1.5.0_10/bin/java PATH has /usr/local/jdk/jdk1.5.0_10/bin
but i still see java -version even from the bin directory /usr/local/jdk/jdk1.5.0_10/bin as follows
java -version
java version "1.4.2" gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10.0.1) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.