[Ilugc] JAVA version

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Tue Sep 29 13:52:33 2009

Hi Rajesh,

On 09/29/2009 01:40 PM, Rajesh Kumar wrote:

Dear Friends

                 I have installed jdk1.5 version in my centOS and i set path
in /etc/profile

export JAVA_HOME=/usr/jdk1.5.0_11
export JAVA_PATH=/usr/jdk1.5.0_11/bin

but when i chenked the java version using # java -version. It's showing java
version "1.4.2". How can solve this problem because i unable to install the
squirrel sql.


exporting JAVA_PATH and JAVA_HOME are useful only to the jre (when it wants to 
know where to look for libs/bins). So, you also need to setup your system to 
select the correct java binary.

See what is the output of:
$ ls -l `which java`

You may have to use the update-alternatives command to set this correctly (man 
alternatives).

hth,
cheers,
- steve

-- 
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/

Other related posts: