如何在 eclipse/springsource 工具套件中安装 jre?

发布于 2024-10-04 18:54:00 字数 388 浏览 0 评论 0原文

由于某种原因,当我向 eclipse/sts 添加 JRE 并为其提供 JDK 1.6.0_22 的位置时,它显示:

目标不是 JDK 根。找不到系统库。

我给它这个文件夹,它是准确的并且适用于其他所有内容: /opt/jdk1.6.0_22

但它是 jdk 根目录。 IDEA是这么认为的。地球上所有其他应用程序也这么认为。旁白:上帝啊,我真的很讨厌日食。这就是为什么我从不使用它,因为没有什么能像它应该的那样工作。我只是想尝试 Spring Insight,所以这就是我使用 STS 的原因...

如果这有什么区别的话,我使用的是 Ubuntu 10.10。

请帮忙。我想如果我能让 STS/Eclipse 停止愚蠢的话我终于可以让它工作了:/

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

撩心不撩汉 2024-10-11 18:54:00

您确定指向 JDK 文件夹而不是 JRE 文件夹吗?

您必须选择 JDK 安装的根文件夹。

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.

暗喜 2024-10-11 18:54:00

在 Ubuntu(10.04,Lucid Lynx)上我遇到了同样的问题。我指向的目录是实际 JDK 目录的符号链接(逻辑)。我通过直接指向物理 JDK 目录来解决这个问题(这在 Java 升级时会成为一个问题,但这是我能想到的最好的办法)。

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).

黯淡〆 2024-10-11 18:54:00

在 Ubuntu 的默认安装中,即使有 JDK 文件夹,我也注意到它没有正确的东西。

我必须使用 apt-get 安装 JDK,如下所示

apt-get install openjdk-7-jdk

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文