Right I installed the jdk from apt as follows.. sudo apt-get install sun-java6-jdk
Much easier that messing about with a bin file.. Then set it up using the following command... sudo update-java-alternatives -s java-6-sun How are you starting tomcat? From a script in /etc/init.d ? How did you install tomcat on the box? via apt-get or did you download from http://tomcat.apache.org/download-60.cgi? Regards Ben On 10/8/07, Arun <[EMAIL PROTECTED]> wrote: > Ben, > > I installed jdk from jdk-6u1-linux-i586.bin. > Still my path has not updated, I have to manually point the symlink . Is > this not suns's jdk? > Am I not using the correct jdk? > > grep -r -i "JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00" -l /usr did not > give me a valid entry either. ? > > > [EMAIL PROTECTED]:~/downloads# cd /usr/lib/jvm/ > java-1.4.2-gcj-4.1-1.4.2.0/ java-gcj/ .java-gcj.jinfo > > My jvm directory looks like this. > > On 10/8/07, ben short <[EMAIL PROTECTED]> wrote: > > > > I have tomcat 6 running on fiesty with jdk 1.6 and have the following > > in my init script... > > > > JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00 > > > > > > > > On 10/8/07, Arun <[EMAIL PROTECTED]> wrote: > > > Hi , > > > > > > My webapp hangs on tomcat. I have struts,spring and hibernate on it. > > > I was getting an OutOfMemory error initially, on clicking each of the > > > links. I thought the problem could be jvm's . > > > when I did ls -alt /usr/bin/java , it pointed to > > > /usr/local....../alternatives/java.. > > > and java -version gave gij 1.4.2. What is that? > > > I thought this could be the reason since my javac -version pointed to > > jdk1.6 > > > . > > > I changed the symlink to point to jdk1.6 java by issuing > > > ln -s /usr/local/jdk....../java /usr/bin/java > > > > > > But my webapp is now hanging? Is there any reason? > > > > > > > > > > > > > > > > > > > > > -- > > > Thanks > > > Arun George > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks > Arun George > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]