|
Question : Eclipse unable to retrieve default java libraries
|
|
When I look in my eclipse error log, I see the error message:
Failed to retrieve default libraries for C:\Program Files\Java\jdk1.6.0_03
I removed my JDK and tried to install the previous version of JDK (5) that didn't help. I removed that and reinstalled JDK 6 in a path with no spaces in it and that didn't help either.
When I am writing code, when I type in an object then a dot the list that comes up with all the methods just turns white and freezes the program. As well, I noticed when trying to run applets from within Eclipse it takes about 30 seconds to open, I'm not sure if these problems are related.
Also when I am on webpage which uses Java it sometimes freezes for a while before it loads.
|
Answer : Eclipse unable to retrieve default java libraries
|
|
You can set the JAVA_HOME environment variable by brining up your system properties (I'm assuming Windows here) using the shortcut Windows Key + Pause. Then, go into the Advanced tab and then click on the "Environment Variables" button. Make sure you set it as a system environment variable, not just a user one.
If you're on Unix/Linux then just set it in your profile....
export JAVA_HOME=/path/to/java/
|
|
|
|