[Ilugc] JAVA version

  • From: senthils@xxxxxxxxxx (Senthil Anand)
  • Date: Tue Sep 29 13:54:10 2009

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.

Make sure that the JAVA_PATH is the first entry for PATH. You are now 
probably using the GCJ java from /usr/bin.

Use something like:
export PATH=$JAVA_PATH:$PATH
or
export PATH=$JAVA_HOME/bin:$PATH

Regards,
Senthil

Other related posts: