• Register
0 votes
788 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

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
2 answers 206 views
206 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 1.2K views
1.2K 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 jwilliam 3.9k points
0 votes
1 answer 265 views
265 views
Problem: I am very new to Cucumber. Recently I was reworking my project in the Intellij into my modules and suddenly I came across below error: "C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" "-Dorg.jetbrains.run.directory=C:\Users\Raphael\Documents\1_Code Stuff ... guru-pet-clinic" Error: Could not find or load main class cucumber.cli.Main Can some Cucumber expert help me in fixing above error?
asked Jul 27 Raphael Pacheco 4.9k points
0 votes
1 answer 83 views
83 views
Problem : I am getting bellow compiler error error: could not find or load main class com.sun.tools.javac.main
asked Nov 5, 2019 peterlaw 6.9k points
1 vote
1 answer 26 views
26 views
Problem: What is the meaning of Java could not find or load main class, and why does it happen? I’ll appreciate your sharing.
asked Mar 6 Gavin 15.3k points