Tomcat installation issue - "Could not find or load main class"
<p>I want to create a 'Dynamic web project' in eclipse. To do so, I want Tomcat to be listed in 'Target runtime' combo. So, I'm trying to install Tomcat. I changed the mode of all .sh files in TOMCAT_HOME/bin as follows;</p>

<ol>
<li>[root@localhost opt]# cd apache-tomcat-7.0.12/bin/</li>
<li>[root@localhost bin]# chmod 0755 *.sh</li>
</ol>

<p>I could see that there is a problem with my installation.
 How to resolve the below errors and install tomcat successfully?</p>

<p>On executing <strong>./version.sh</strong> command, I get the following</p>

<pre><code>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
</code></pre>

<p>On executing <strong>./configtest.sh</strong>, I get the following error;</p>

<pre><code>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!
</code></pre>