Unbound classpath container in Eclipse
Solution 1:
I had a similar problem when I recreated my workspace that was fixed in the following way:
In Eclipse, go to Window -> Preferences
. Under Java select "Installed JREs" and check one of the boxes to specify a default JRE. Click OK and then go back to your project's properties. Go to the "Java Build Path" section and choose the "Libraries" tab. Remove the unbound System Default library, then click the "Add Library" button. Select "JRE System Library" and you should be good to go!
Solution 2:
Given the FAQ, sharing a project file seems have to have advantages and is even recommended practice for Java projects (personally, I would not do that).
Maybe some of the following work for you:
- Edit the project's properties (right-click project, Properties, Java Build Path, Libraries, Remove and Add Library.
- Import the project's files without the "project file"
- Install JDK1.5 from http://java.sun.com/javase/downloads/index_jdk5.jsp and see whether you can fix paths
Solution 3:
To fix this:
- Right click your project –> Build Path –>Configure Build Path
- Select JRE Library and click Edit and from Edit library window choose alternate JRE whatever been configured with your eclipse then click Finish