Click the Add Library button. As a result, your screen will indicate the location of Java.
Select " Directory ", click the button to the right of JRE home and specify the location of the installed folder.
Although you only want a 1.5 compiler project, you can achieve this by changing the compiler settings in Eclipse instead of removing 1.6 JREs and adding 1.5 JREs.
GOTO -->JAVA--Compiler---> and change compiler level to '1.5' instead of '1.6'
As Davidfmateson suggested,
Just be careful, especially if you're setting it up for a team of people to work on. If someone uses something new or changed in 1.6, it will compile, but will not work in an environment with JRE 1.5.
kosa Sep 25 '12 at 17:59 2012-09-25 17:59
source share