开发者

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

For some reason, when I go to add a JRE to eclipse/sts and give it the location of the JDK 1.6.0_2开发者_运维技巧2, 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 :/


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.


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜