how do you get a jre installed in eclipse/springsource toolsuite?

egervari picture egervari · Nov 29, 2010 · Viewed 9.8k times · Source

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 :/

Answer

Alois Cochard picture Alois Cochard · Nov 29, 2010

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.