Re: Problem with the JRockit

2006-06-03 Thread Leon Rosenberg

why do you set the classpath?
I also use jrockit and suns jdk

I installed both under /opt -
/opt/jdk1.5.0_06/
and
/opt/jrockit-R26.3.0-jdk1.5.0_06

and have a link in /usr/local-
rwxrwxrwx  1 root staff   38 2006-05-16 15:16 java -
/opt/java/jrockit-R26.3.0-jdk1.5.0_06/

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/catalina.sh run

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

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

hth
leon

On 6/3/06, Benjamin Chu [EMAIL PROTECTED] 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
PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
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 CLASSPATH=$CLASSPATH:/root
export CATALINA_HOME=/var/tomcat
export CATALINA_HOME


However, when I start the tomcat (./startup.sh), 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with the JRockit

2006-06-03 Thread Benjamin

Thank you very much! I think it works right now! ^_^

Leon Rosenberg wrote:

why do you set the classpath?
I also use jrockit and suns jdk

I installed both under /opt -
/opt/jdk1.5.0_06/
and
/opt/jrockit-R26.3.0-jdk1.5.0_06

and have a link in /usr/local-
rwxrwxrwx  1 root staff   38 2006-05-16 15:16 java -
/opt/java/jrockit-R26.3.0-jdk1.5.0_06/

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/catalina.sh run

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

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

hth
leon

On 6/3/06, Benjamin Chu [EMAIL PROTECTED] 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
PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
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 CLASSPATH=$CLASSPATH:/root
export CATALINA_HOME=/var/tomcat
export CATALINA_HOME


However, when I start the tomcat (./startup.sh), 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with the JRockit

2006-06-02 Thread Benjamin Chu
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
PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
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 CLASSPATH=$CLASSPATH:/root
export CATALINA_HOME=/var/tomcat
export CATALINA_HOME


However, when I start the tomcat (./startup.sh), 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!