Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException: (After Java 16 update, this error for all the Project )
Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException: [message #1839420] Sat, 20 March 2021 18:46 Go to next message
Matteo Franceschi is currently offline Matteo FranceschiFriend
Messages: 1
Registered: March 2021
Junior Member
After the update with java 16 and the new version of Eclipse 2021 03,
all my project (even a new one) of Java or Spring Boot are not working anymore.

All I have as errore is:

Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:

I tryed to rebuild, clean, use maven (not working anymore), delete all the library...
Nothing is working.

Someone can help me with this problem, please?
Re: Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException: [message #1839465 is a reply to message #1839420] Mon, 22 March 2021 08:58 Go to previous message
Sarika Sinha is currently offline Sarika SinhaFriend
Messages: 122
Registered: February 2010
Location: Bangalore, India
Senior Member
So you have installed Java 16 support from marketplace entry https://marketplace.eclipse.org/content/java-16-support-eclipse-2021-03-419 ?
Which Java version you were using before? Are you using modules ?


Sarika Sinha
JDT Programmer
Previous Topic:Java Compliance Level keeps reseting to 1.8 after restart
Next Topic:The jar file /usr/share/apache-tomcat-8.5.63/lib/catalina.jar has no source attachement
Goto Forum:
  


Current Time: Sat Jun 19 22:25:14 GMT 2021

Powered by FUDForum. Page generated in 0.01561 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top