Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When starting Tomcat l get “java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat” — Why?

0
Posted

When starting Tomcat l get “java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat” — Why?

0

Location: http://www.jguru.com/faq/view.jsp?EID=228619 Created: Oct 14, 2000 Modified: 2000-10-15 13:12:05.267 Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Steve Jones (http://www.jguru.com/guru/viewbio.jsp?EID=212259 You are missing the webserver.jar from your classpath. The start script on unix dynamically builds your classpath, including all the files in the server’s lib directory. On Windows, you have to manually edit this, although it should have webserver.jar included out of the box. Try editing the tomcat.bat or tomcat.sh in your bin directory. This bat/script file is referenced by virtuall all scripts in this directory. You can see if it’s properly finding the TOMCAT_HOME environment variable, and if it’s properly defining your classpath.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123