1

Error: Could not find or load main class com.build.test.Application Caused by: java.lang.ClassNotFoundException: com.build.test.Application

That's it. The program worked, then I updated the program to a new dependice at Spring boot and then it stopped working. I restarted the update and tried the old version, nothing worked.

dean
  • 45
  • 9

1 Answers1

1

Try reinstalling maven.

If you update a dependency, you may need to reinstall maven as well.

mvn install

Or look there it is well described What does "Could not find or load main class" mean?

lesch
  • 188
  • 1
  • 1
  • 14