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.
Since tools.jar is an JDK library you can add it for all projects by configuring your Execution Environment. In Preferences go to Java > Installed JREs select your JDK and click on Edit…. In the new Dialog you can add external jars like tools.jar to your execution environment. I hope you have installed the JDK 1.6 and not only the JRE 1.6 as you have written in your question.