You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Stack <ds...@musicstack.com> on 2000/04/05 09:53:19 UTC

Tomcat won't start - Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat

Hello,

I am trying to get Tomcat v3.1_beta_1 started on Linux Red Hat 6.0.
I have java version "1.2.2" installed also.

When I run 'startup.sh' or 'tomcat.sh start' I get the following error:

>> root /usr/local/tomcat/bin>Exception in thread "main" >>
java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat

This is driving me nuts!  So I read some old posts in the mailing list
archive and they talk about setting the environmental variables might fix
the problem.
So I tried that, and it didn't do anything!  

Here is part of my .bash_profile that i tried:

PATH=$PATH:$HOME/bin
CLASSPATH=/usr/local/jdk/jre/lib/
LD_LIBRARY_PATH=/usr/local/jdk/jre/lib/
TOMCAT_HOME=/usr/local/tomcat
JAVA_HOME=/usr/local/jdk

ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME ENV PATH CLASSPATH LD_LIBRARY_PATH TOMCAT_HOME JAVA_HOME


Could someone be so kind as to tell me why I am having an impossible time
getting Tomcat started?   I am sure it is something very simple that I am
not doing.

Thanks you very much!

Dave


Re: Tomcat won't start - Exception in thread "main"java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat

Posted by gtallen <gt...@home.com>.
Are you sure your picking up the right jvm.  I thought Redhat
installs another jdk too (#which java).  Just a thought!

Greg

David Stack wrote:
> 
> Hello,
> 
> I am trying to get Tomcat v3.1_beta_1 started on Linux Red Hat 6.0.
> I have java version "1.2.2" installed also.
> 
> When I run 'startup.sh' or 'tomcat.sh start' I get the following error:
> 
> >> root /usr/local/tomcat/bin>Exception in thread "main" >>
> java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat
> 
> This is driving me nuts!  So I read some old posts in the mailing list
> archive and they talk about setting the environmental variables might fix
> the problem.
> So I tried that, and it didn't do anything!
> 
> Here is part of my .bash_profile that i tried:
> 
> PATH=$PATH:$HOME/bin
> CLASSPATH=/usr/local/jdk/jre/lib/
> LD_LIBRARY_PATH=/usr/local/jdk/jre/lib/
> TOMCAT_HOME=/usr/local/tomcat
> JAVA_HOME=/usr/local/jdk
> 
> ENV=$HOME/.bashrc
> USERNAME="root"
> 
> export USERNAME ENV PATH CLASSPATH LD_LIBRARY_PATH TOMCAT_HOME JAVA_HOME
> 
> Could someone be so kind as to tell me why I am having an impossible time
> getting Tomcat started?   I am sure it is something very simple that I am
> not doing.
> 
> Thanks you very much!
> 
> Dave
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

Re: Tomcat won't start - Exception in thread "main"java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat

Posted by Juan Alvarez Ferrando <ja...@oviedo.syseca.es>.
David Stack wrote:

Again.

Modify the startup.sh script and after it figures out TOMCAT_HOME,
insert
by hand into TOMCAT_HOME de correct FULL PATH of your installation.

...
export TOMCAT_HOME=/opt/tomcat
...

This way the classpath will be expressed in full path and your java 
wont have problems to find the .jar files.

Juan Alvarez Ferrando

> 
> Hello,
> 
> I am trying to get Tomcat v3.1_beta_1 started on Linux Red Hat 6.0.
> I have java version "1.2.2" installed also.
> 
> When I run 'startup.sh' or 'tomcat.sh start' I get the following error:
> 
> >> root /usr/local/tomcat/bin>Exception in thread "main" >>
> java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat
> 
> This is driving me nuts!  So I read some old posts in the mailing list
> archive and they talk about setting the environmental variables might fix
> the problem.
> So I tried that, and it didn't do anything!
> 
> Here is part of my .bash_profile that i tried:
> 
> PATH=$PATH:$HOME/bin
> CLASSPATH=/usr/local/jdk/jre/lib/
> LD_LIBRARY_PATH=/usr/local/jdk/jre/lib/
> TOMCAT_HOME=/usr/local/tomcat
> JAVA_HOME=/usr/local/jdk
> 
> ENV=$HOME/.bashrc
> USERNAME="root"
> 
> export USERNAME ENV PATH CLASSPATH LD_LIBRARY_PATH TOMCAT_HOME JAVA_HOME
> 
> Could someone be so kind as to tell me why I am having an impossible time
> getting Tomcat started?   I am sure it is something very simple that I am
> not doing.
> 
> Thanks you very much!
> 
> Dave
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org