3

I did an upgrade of my windows OS and restored my eclipse workspace from my backup. Now, when I try to open any of the older projects, they complain with a message:

Unbound classpath container: 'JRE System Library [jre6]' in project <ProjectName>

When I looked around, I found pages which suggest that I change the JRE version for the project. However, I have about 50 projects in this workspace and do not want to change the value for each of them.

Any suggestions would be welcome.

Thanks and regards,

Karthick S.

Karthick S
  • 3,204
  • 6
  • 36
  • 52
  • Look at this post : http://stackoverflow.com/questions/2083461/unbound-classpath-container-in-eclipse Hope it helps you ! – Anass Aug 18 '11 at 07:07

2 Answers2

2

You should add a new JRE and name it [jre6] (or rename your current JRE). That will prevent you from changing manually your 50 projects. Window -> Preferences -> Java -> Installed JREs -> Add...

Kai
  • 38,985
  • 14
  • 88
  • 103
1

The problem is that if you backed up the eclipse project files, then these contain information regarding paths to your JRE or JDK install and any external jars (specific to your last install). There are 2 files that you can edit with any text editor to fix this problem .classpath and .project.

Other option would be to delete the classpath and project files and try to import the project as java project using File > Import.

Ali
  • 12,354
  • 9
  • 54
  • 83