go to java build path and under Library tab, remove JRE System Library. Then again Add Library –> JRE System Library
Worked for me
More Related Contents:
- When does object pointed by 'Example.class' come into existence?
- 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?
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Any reason to prefer getClass() over instanceof when generating .equals()?
- Eclipse 2021-09 code completion not showing all methods and classes
- Build Eclipse Java Project from Command Line
- Integrating tomcat and eclipse as a hot-deploy environment
- SQLite in Android How to update a specific row
- “Unable to acquire application service” error while launching Eclipse
- Eclipse Autocomplete (percent sign, in Juno)
- Preserving parameter/argument names in compiled Java classes
- Eclipse – “Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required”
- How to generate Javadoc HTML files in Eclipse?
- Attach the Source in Eclipse of a jar
- How can I implement easing functions with a thread
- Embedding resources (images, sound bits, etc) into a Java project then use those resources
- How to resize an image when resizing the window in JavaFX
- Cannot find Main Class in File Compiled With Ant
- Can’t fix Unsupported major.minor version 52.0 even after fixing compatibility
- Eclipse does not highlight matching variables
- The import javax.servlet can’t be resolved [duplicate]
- Where is the Keytool application?
- Which @NonNull Java annotation to use [duplicate]
- How to change JAVA.HOME for Eclipse/ANT
- eclipse: how to debug a Java program as a .jar file?
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder
- Libraries for pretty charts in SWT? [closed]