You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jim Rudnicki <jd...@pacbell.net> on 2000/04/20 09:18:21 UTC

Re: Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/tomcat/shell/Startup

From: "Joel Grocock" <jg...@totalise.co.uk>
>       I downloaded the latest version of Tomcat today and have followed
all
> installation instructions as closely as possible. I am however getting
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tomcat/shell/Startup
>
> I am running on NT 4 and have checked all the relevant paths i.e
TOMCAT_HOME
> and JAVA_HOME recommended in the mailing archive.
>
If you look through the tomcat.bat file, after the :runServer you will see

echo Using classpath: %CLASSPATH%
start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" ...snipped

That start never worked for me (on Win98 although).  The start spawns a new
dosbox that _does not_ get a copy of the current environment variables.  I
remove the "start" and it all works fine.  Like this tomcat runs in the
current shell that has all the SET statements the scripts just defined.

Try it, you may like it.
Jim



Re: Exception in thread "main"java.lang.NoClassDefFoundError:org/apache/tomcat/shell/Startup

Posted by Roy Truelove <ro...@binghamton.edu>.
>
> From: "Joel Grocock" <jg...@totalise.co.uk>
> >       I downloaded the latest version of Tomcat today and have followed
> all
> > installation instructions as closely as possible. I am however getting
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/tomcat/shell/Startup
> >
> > I am running on NT 4 and have checked all the relevant paths i.e
> TOMCAT_HOME
> > and JAVA_HOME recommended in the mailing archive.
> >
> If you look through the tomcat.bat file, after the :runServer you will see
>
> echo Using classpath: %CLASSPATH%
> start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" ...snipped
>
> That start never worked for me (on Win98 although).  The start spawns a
new
> dosbox that _does not_ get a copy of the current environment variables.

Another thing that it does on 95 is when a new window is spawned, it is not
in the currect directory.  So you might get a window that pops up and then
goes away quickly.  If you use Tomcat 3.1, try "tomcat run" instead of
"startup".  That will keep the prog. in the same window.

-Roy