Question

For some reason, when I go to add a JRE to eclipse/sts and give it the location of the JDK 1.6.0_22, it says:

Target is not a JDK root. System library was not found.

I am giving it this folder, which is accurate and works for everything else: /opt/jdk1.6.0_22

But it is the jdk root. IDEA thinks so. Every other APP on the planet thinks so too. Aside: God, I really hate eclipse. This is why I never use it, because nothing works like it's supposed to. I just want to try Spring Insight out, so that's why I am using STS...

I am on Ubuntu 10.10 if that makes any difference.

Please help. I think I can finally get this to work if I can just get STS/Eclipse to stop being stupid :/

Was it helpful?

Solution

Are you sure you are pointing to the JDK folder and not the JRE folder ?

You must select the root folder of the JDK installation.

OTHER TIPS

On Ubuntu (10.04, Lucid Lynx) I ran into this same problem. I was pointing at a directory that was a symbolic link (logical) to the actual JDK directory. I got around it by pointing directly at the physical JDK directory (this is going to be an issue when Java upgrades, but its the best I could figure out).

On a default install of Ubuntu, even though there was a JDK folder, I noticed it didn't have the right stuff.

I had to install the JDK using apt-get as follows

apt-get install openjdk-7-jdk
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top