• Register
0 votes
1.9k views

Problem :

When I run the apache tomcat7.0.56 in Eclipse, I get below error

Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

How can I fix the above problem?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

First of all you should try to run the TOMCAT using it's own .bat and not the Eclipse. If it doesn't run then problems would be on the tomcat installation and not in a Eclipse and you could take the look to the files of TOMCAT_HOME/logs/ where Tomcat's errors are always traced (they are very helpful).

Anyway, if it runs properly out of a eclipse, try to delete a eclipse's tomcat configuration and set it from a beginning following these simple steps

· Go to a Eclipse's Window > Preferences > Server > Runtime Environment and add the Tomcat Server browsing the TOMCAT_HOME and selecting a suitable JRE (use JAVA_HOME that contains the jre yet) paying attention to the messages requiring a certain JDK depending on a TOMCAT version (TOMCAT_8 requires at least a JDK_1.7 version and, if not set, usually shows the errors explaining it when starting)

· Go to a Eclipse's Window > Show View > Other... > Server > Servers and add the new server; in this case a version of TOMCAT you set before. You don't need to add the further configuration to make a TOMCAT to start.

· At this point if would be the helpful if you hadn't had any app at TOMCAT_HOME's webapps folder but those that came default then(you must empty a TOMCAT_HOME/work folder to remove a cached stuff). Once you have ensured it, then start from ECLIPSE and cross your fingers. In case of fail, take the look to Eclipse's console and look for a exception to copy at this post

9 7 4
38,600 points

Related questions

0 votes
1 answer 19 views
19 views
Problem: How can I fix this problem: Error: could not find or load main class org.apache.catalina.startup.bootstrap .
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 7 views
7 views
Problem: I am just getting the critical error message of (could not find or load main class org.apache.hadoop.mapreduce.v2.app.mrappmaster). Does anyone know how to fix it?
asked Mar 30 zayed1 35.6k points
0 votes
1 answer 4 views
4 views
Problem: Eclipse Error: Could not find or load the main class I can't seem to fix the problem. I've written a basic java program in Eclipse Juno?
asked Apr 6 neeraj 10.5k points
0 votes
1 answer 5 views
5 views
Problem: Please help me … how can I solve it?. could not load the tomcat server configuration
asked Mar 22 Ifra 24.4k points
0 votes
1 answer 4 views
4 views
Problem Eclipse Error: Could not find or load the main class I'm on Windows 7 64-bit. Any help would be appreciated!
asked Apr 6 neeraj 10.5k points
0 votes
1 answer 4 views
4 views
Problem: How can I fix the problem?error: could not find or load main class eclipse
asked Mar 27 ashik 12.9k points
0 votes
2 answers 305 views
305 views
Problem : I am stuck with following Maven issue. Error: could not find or load main class org.codehaus.plexus.classworlds.launcher.launcher My Maven was working fine till last week after that I do not know what went wrong with it now it gives me the error I have tried replacing ... Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)
asked Nov 24, 2019 alecxe 7.5k points
0 votes
1 answer 12 views
12 views
Problem: How to fix the error: could not find or load main class org.testng.remote.remotetestng?
asked Mar 27 ashik 12.9k points
0 votes
1 answer 67 views
67 views
Problem: error: could not find or load main class org.testng.testng.
asked Feb 20 charles mathews 5.5k points
0 votes
1 answer 2.6K views
2.6K views
Problem : I cleaned my whole project by deleting my local directories as following ~/.gradle, ~/.m2 ~./android and ~/workspace/project/.gradle and choosing the File -> Invalidate Caches / Restart... in my Android Studio. Now execution of my command ./gradlew leads to the ... say that I deleted too much code, the question now is how can it be repaired again? Do you have any solution to fix this?
asked Jan 18, 2020 jwilliam 3.9k points