• Register
0 votes

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
2 answers 251 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.9K 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
0 votes
1 answer 20 views
Solve this.
asked Dec 28, 2020 TeamScript 9.5k points
0 votes
1 answer 928 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 94 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
0 votes
1 answer 6 views
What does this mean, what causes it, and how should you fix it?
asked Dec 15, 2020 TeamScript 9.5k points
0 votes
1 answer 9 views
I have a Java project I am working on and I get this error. Please solve this.
asked Dec 3, 2020 TeamScript 9.5k points
1 vote
1 answer 28 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, 2020 Gavin 15.3k points
0 votes
1 answer 822 views
Problem : Getting strange error related to constant pool as follows org.apache.tomcat.util.bcel.classfile.classformatexception: invalid byte tag in constant pool: 19
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 122 views
Problem : I am having a box with 8gb of ram, so I don't think the total memory is the issue. This application is running properly on boxes with 6gb or less ram. What I am trying to do is to reserve 3GB of space using -Xmx3G command under "VM ... : Error occurred during initialization of VM; Could not reserve enough space for object heap using -Xmx3G Why am I getting such error any clue?
asked Nov 26, 2019 alecxe 7.5k points