This just happened to me today after updating my JRE. I cleaned the project and it started working again.
Project -> Clean
will remove any existing class files and completely rebuild the project. There’s more information on Eclipse’s clean function here.
More Related Contents:
- Been staring at my code for an hour and still can't see the issue. Android – Java development [closed]
- Even Factorial Method in Java. I have tried everything and can’t figure it out
- Access restriction on class due to restriction on required library rt.jar?
- Failed to load the JNI shared Library (JDK)
- NoClassDefFoundError – Eclipse and Android
- How to create a jar with external libraries included in Eclipse?
- Any reason to prefer getClass() over instanceof when generating .equals()?
- Eclipse 2021-09 code completion not showing all methods and classes
- Integrating tomcat and eclipse as a hot-deploy environment
- “Unable to acquire application service” error while launching Eclipse
- Eclipse Autocomplete (percent sign, in Juno)
- How to change an Eclipse default project into a Java project
- Eclipse – “Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required”
- Attach the Source in Eclipse of a jar
- Eclipse memory settings when getting “Java Heap Space” and “Out of Memory”
- java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
- Getting ‘java.lang.UnsatisfiedLinkError’: no lwjgl in java.library.path
- Android app in Eclipse: Edit text not showing on Graphical layout
- Maven build failed: “Unable to locate the Javac Compiler in: jre or jdk issue”
- Java: synchronizing standard out and standard error
- Problems with clear case plugin eclipse
- Eclipse: change name of existing package with classes inside
- How to convert jar to OSGi bundle using eclipse and bndtools
- Visual swing in Eclipse
- How does Eclipse actually run Junit tests?
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error
- Easiest way to upgrade eclipse 3.7 to 4.2 (Juno)
- How to specify jdk path in eclipse.ini on windows 8 when path contains space
- PKIX path building failed in Eclipse
- Including external jar-files in a new jar-file build with Ant