Search code examples
javaeclipsetomcat9

Tomcat 9.0 and jdk 17 "Server Tomcat v9.0 Server at localhost failed to start"


I got the error "Server Tomcat v9.0 Server at localhost failed to start." when using Eclipse. I have found so many solutions when I search, but nothing really solve my problem.

Debug console:

Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap

I've tried:

  • Changing Tomcat ports
  • Changing JAVA_HOME link
  • Tons of recreate, restart, reinstall Tomcat 9.0 and jdk 17, but still doesn't work
  • I notice that my debug console said something different from the others

Specs:

  • Eclipse version 2024-06 (Download on original page)
  • Tomcat v9.0 (Download on Tomcat page, Zip file x64)
  • jdk 17.0.11 (Download on Oracle, Installer file)

Full issue image

Runtime Enviroment Preferences


Solution

  • PROBLEM SOLVED

    I put it in a unusual named folder, it's fixed by put in another folder with normal English name

    Folder name