When I run apache tomcat7.0.56 in Eclipse, I get an error
Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
How can I fix the problem?
When I run apache tomcat7.0.56 in Eclipse, I get an error
Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
How can I fix the problem?
It seems the server does not have access to two Jar files.
Start the server now.
First of all you should try to run TOMCAT using it's own .bat and not Eclipse. If it doesn't run problems would be on your tomcat installation and not in Eclipse and you could take a look to the files of TOMCAT_HOME/logs/ where Tomcat's errors are traced (they are so helpful).
Anyway, if it runs properly out of eclipse, try to delete the eclipse's tomcat configuration and set it from the beginning following these simple steps
Simply changing the perspective from java to java EE on the top right corner did the trick for me. If you cannot find java EE their simply click on the other perspective icon and add java EE from there.
If this doesn't work try using different versions of jdk in your project, i changed my jdk from 11 to 1.8 and the project started running.
Que 1. Is your tomcat started interdependently(outside eclipse)??
Ans. if ans is no - then - I think you have downloaded tomcat source instead binary... you should download binary and install tomcat then it will run.
1.download binary (https://tomcat.apache.org/) 2.unzip it
3.copy unzipped apache folder
4.place this to your program files
set JAVA_HOME to C:\Program Files\Java\jdk_Your_version_num
Run C:\Program Files\apache-tomcat-Your_version_num\bin\startup.bat .... hope your tomcat will start
1.download binary Link -. https://tomcat.apache.org/
1.1. choose version of your choice and click "download"
1.2. On next page under heading "Binary Distributions"- download zip and proceed to next steps. All the best.
If tomcat is working perfectly fine independently,
Eclipse is not able to read a certain file from the directory which is the reason for the error. Nothing worked for me, but changing the permission helped me.
If Tomcat works fine independently, close Eclipse and then right click Eclipse and choose 'Run as an administrator'.
That worked for me in Windows 10 with Eclipse Version: 2021-06 (4.20.0) and Tomcat 10.0.20
Had the same issue on MacOS. Turns out the issue had to do with the name of the directory that I had both Tomcat and Eclipse in. My directory was titled "23-24" This gets automatically translated to 23:24 in Eclipse when choosing a work directory. Tomcat however does not like semicolon characters so it would not start the server. I figured this out by trying to run Tomcat by itself and getting an error in terminal saying that CATALINA_HOME contained a : which it shouldn't. I changed the name of my directory to include no "-" characters and no spaces and it seemed to have fixed this issue for me.
most likely cause it tomcat cannot run bootstrap.jar this is due to bad jre you can choose with jre tomcat has to use by running ConfigureTomcat tool and choosing a different \jre\bin\server\jvm.dll
© 2022 - 2025 — McMap. All rights reserved.