I recently uninstalled jre7
and installed jre6
, as it was required by my project. But now my program is showing an error with the classpath. How can I change the classpath in Eclipse?
The error is:
The archive: C:/Program Files/Java/jdk1.7.0_05/lib/tools.jar which is referenced by the classpath, does not exist.
To change the project JRE in Eclipse, you have to go into the project specific settings (select the project folder in the Package Explorer, then go in the project and then click on properties), where you will find the Java Build Path related settings.
In the Build Path section of the project settings, you have to go into the Libraries Tab:
From here, you have to double click on the JRE System Library and change the execution environment to JavaSe 1.6:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With