Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing classpath in Eclipse

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.

like image 593
Raheel Avatar asked Aug 10 '12 07:08

Raheel


1 Answers

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:

enter image description here

From here, you have to double click on the JRE System Library and change the execution environment to JavaSe 1.6:

JRE edit

like image 119
aleroot Avatar answered Oct 09 '22 09:10

aleroot