Tomcat installation problem - "Could not find or load main class"

I want to create a "dynamic web project" in eclipse. For this, I want Tomcat to be included in the "Target runtime" command. So, I'm trying to install Tomcat. I changed the mode of all .sh files to TOMCAT_HOME / bin as follows:

  • [root @localhost opt] # cd apache-tomcat-7.0.12 / bin /
  • [root @localhost bin] # chmod 0755 * .sh

I saw that there is a problem with my installation. How to resolve the errors below and successfully install tomcat?

When running the ./version.sh command , I get the following

Using CATALINA_BASE: /home/admin/apache-tomcat-9.0.0.M6-src Using CATALINA_HOME: /home/admin/apache-tomcat-9.0.0.M6-src Using CATALINA_TMPDIR: /home/admin/apache-tomcat-9.0.0.M6-src/temp Using JRE_HOME: /usr/java/jdk1.8.0_91 Using CLASSPATH: /home/admin/apache-tomcat-9.0.0.M6-src/bin/bootstrap.jar:/home/admin/apache-tomcat-9.0.0.M6-src/bin/tomcat-juli.jar Error: Could not find or load main class org.apache.catalina.util.ServerInfo 

When executing ./configtest.sh, I get the following error:

 Using CATALINA_BASE: /home/admin/apache-tomcat-9.0.0.M6-src Using CATALINA_HOME: /home/admin/apache-tomcat-9.0.0.M6-src Using CATALINA_TMPDIR: /home/admin/apache-tomcat-9.0.0.M6-src/temp Using JRE_HOME: /usr/java/jdk1.8.0_91 Using CLASSPATH: /home/admin/apache-tomcat-9.0.0.M6-src/bin/bootstrap.jar:/home/admin/apache-tomcat-9.0.0.M6-src/bin/tomcat-juli.jar Error: Could not find or load main class org.apache.catalina.startup.Bootstrap Configuration error detected! 
+5
source share

All Articles