Java for eclipse compilation JRE problem
I use Mac OS 10.6. After restoring my backup data, eclipse stops working It gave me the following errors:
The container 'JRE System Library [JavaSE-1.6]' references non existing library '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar' Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'Proba'
I tried to install the java development kit again (help – > install new software), and eclipse actually installed it, but when I went to (eclipse – > preferences – > java – > installed JRE), I received the error "the installed JRE location no longer exists, and the JRE will be deleted. Reason: the JRE is deleted", and the installed JRE window is indeed empty. The Java code is still not compiled
Solution: go to: Eclipse – > preferences – > java – > installed JRE – > execution environment and select Java se 6 package (Java se 7 may work), and then select compatible JRE on the right Reload eclipse
Solution
Two possibilities:
1. Update the installed JRE (one of the following will be done according to the problem)
>Delete and recreate the installed JRE instance of the failed JVM
Eclipse – > preferences – > java – > installed JRE > install a new version of Java (you can get it here) and then create a new instance using eclipse's "installed JRE" Set it to the default value
Eclipse – > preferences – > java – > JRE installed
(as you said) 2 Update the execution environment to make it compatible with JRE
Go to eclipse – > preferences – > java – > installed JRE – > execution environment and select a compatible environment