Hi, Thank you for responding. Below are the commands I used to check java. i am confused because which java is reading /usr/bin/java; i think it should be /usr/local/jdk1.6.0_20. As you see from the alternatives command, I have set the default java to /usr/local/jdk1.6.0_20/bin/java;
Please advise. What is the difference between java_home and jre_home? [r...@www2 conf]# which java /usr/bin/java [r...@www2 conf]# alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java * 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java + 3 /usr/local/jdk1.6.0_20/bin/java [r...@www2 conf]# echo $JAVA_HOME /usr/local/jdk1.6.0_20 On Wed, Jul 14, 2010 at 2:11 PM, Bob Hall <rfha...@yahoo.com> wrote: > > > --- On Wed, 7/14/10 at 10:08 AM, testwreq wreq <testw...@gmail.com> wrote: > > > catalina logs are showing jre_home as > > null. Any ideas how to set it? > > > > Earlier, in a separate thread, you indicated that java 1.6 was installed. > > At the command prompt type: > > $ which java > > which should display something like: > > /usr/local/jdk1.6/bin/java > > Depending on the 'shell' you are using you should be able to use of the > following commands: > > $ export JAVA_HOME=/usr/local/jdk1.6 > > $ setenv JAVA_HOME /usr/local/jdk1.6 > > This will only set JAVA_HOME for the current 'shell', it is not permanent. > > - Bob > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >