Server Tomcat v8.5 Server at localhost failed to start caused by: java.lang.ClassNotFoundException

I’ve tried many options related to this error. It’s been almost 4 days and I can’t figure out why this is still showing.

I reinstalled tomcat, eclipse and my whole OS ๐Ÿ˜‚.

Error eclipse

Hope somebody has a quick fix.

Answer

It’s because of some missing jars. Make sure that these jars exist in your classpath.

  1. bootstrap.jar
  2. tomcat-juli.jar

For adding these jars,

  • Open the Server tab
  • Double click on the Tomcat6 entry.
  • Then click on the ‘Open launch configuration’
  • select the Classpath and “Add external jar”