tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <>
Subject Re: Problem with the JRockit
Date Sat, 03 Jun 2006 11:14:54 GMT
why do you set the classpath?
I also use jrockit and suns jdk

I installed both under /opt ->

and have a link in /usr/local->
rwxrwxrwx  1 root staff   38 2006-05-16 15:16 java ->

then you only need to set the JAVA_HOME:
(from my .bashrc)

export JAVA_HOME=/usr/local/java
export ANT_HOME=/opt/java/ant
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin

then just go in tomcat directory:
cd /opt/tomcat
bin/ run

You don't need to set the classpath since does it for you.

Another question: do you have the tomcat from linux package or
downloaded and installed one from the site? If you
use a linux package -> throw it away, download a fresh copy from the
tomcats download site and enjoy.


On 6/3/06, Benjamin Chu <> wrote:
> I hope to run the tomcat 5.0 with JRockit 5.0 R26.3.on a linux machine
> and installed JRockit in the root directory
> (/root/jrockit-R26-3.0-jdk1.5.0_06)
> The following is the environment variables which I set:**
> export JAVA_HOME=/root/jrockit-R26-3.0-jdk1.5.0_06
> export JAVA_HOME
> export PATH
> export
> CLASSPATH=/root/jrockit-R26-3.0-jdk1.5.0_06/lib/tools.jar:/root/jrockit-R26-3.0-jdk1.5.0_06/jre/lib/rt.jar:./
> export CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/servlet-api.jar
> export
> CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/mysql-connector-java-3.1.12-bin.jar
> export CATALINA_HOME=/var/tomcat
> However, when I start the tomcat (./, I received the
> following message:
> The JAVA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
> I double checked the environment variables which I set and there is no
> typo. The tomcat runs very well if I use Sun J2EESDK .
> Is there something wrong with the configuration? Thank you very much!

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message