月蚀:指定安装JRE不存在 [英] Eclipse: The specified JRE installation does not exist
问题描述
我曾经有过的Eclipse配置好,之前做工精细。但我只是卸载它和10.10今天在我的Mac OS重新安装了Eclipse朱诺。 但我一直收到此错误: 指定的JRE不存在。
I used to have Eclipse configured well and work fine before. But I just uninstalled it and installed Eclipse Juno again on my Mac OS 10.10 today. But I kept getting this error: "The specified JRE does not exist."
我知道这是一个pretty的简单和常见的问题,我只需要安装JRE和/或JDK到这个干净的Eclipse,但事情并没有得到锻炼。
I know it's a pretty simple and commonly seen problem, I just needed to install JRE and/or JDK into this clean Eclipse, however things didn't get work out.
和我已经广泛搜索堆栈溢出: 我已经看了其中的帖子: <一href="http://stackoverflow.com/questions/14341865/how-to-install-jre-1-7-on-mac-os-x-and-use-it-with-eclipse">How在Mac OS X上安装JRE 1.7,并用它与Eclipse? 我是严格遵循公认的答案说了什么,但毕竟已经下载JDK从<一个href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html并安装它,我打算把它添加通过preferences到Eclipse - >爪哇 - >安装的JRE,但是,我并没有把它看成预期,以下是我所看到的,当我去到$截图p $ pferences - >爪哇 - >安装的JRE
And I've searched extensively on Stack Overflow: The posts I've looked at including: How to install JRE 1.7 on Mac OS X and use it with Eclipse? I followed exactly what the accepted answer said, but after having downloaded the JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html and installed it, I was going to add it to Eclipse via Preferences -> Java -> Installed JREs, however, I didn't see it as expected, the following is a screenshot of what I saw when I went to Preferences -> Java -> Installed JREs
但截屏只是说已安装的JRE列表为空,我不能添加任何的JRE到我的Eclipse。
But the screenshot just says the installed JREs list is BLANK, I couldn't add any JRE into my Eclipse.
帮助吗?
另外,我已经试过了,有人提出其他的事情: 属性 - > Java构建路径 我在这里看到的是: JRE系统库的OSGi /最小值 - 1.2在它前面的红色道口标志(表示什么错呢?) 所以,我也阻止这种做法。
Also, I've tried other things that people have suggested: Properties -> Java Build Path what I see here is: JRE System Library OSGi/Minimum-1.2 with a red crossing sign in front of it (indicating something wrong with it?) So, I'm also blocked with this approach.
推荐答案
我有同样的问题。这是我如何固定它。
I had the same problem. This is how I fixed it.
- 打开Eclipse。
- 到
preferences
。 - 点击
添加
- 在一个窗口应该与这个弹出:
- Open Eclipse.
- Go to
Preferences
. - Click
Add
- A Window should popup with this:
- 选择
标准VM
。 - 选择
目录
- 使用此路径:
图书馆/的Java / JavaVirtualMachines / jdk1.7.0_45.jdk /内容/首页/
- 点击
打开
- 然后
完成
- 右键点击您的项目,然后单击
属性
- 选择
Java构建路径
然后点击添加库
- 选择
JRE系统库
- Select
Standard VM
. - Select
Directory
- Use this path:
Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/
- Click
Open
- Then
Finish
- Right click your Project then click
Properties
- Select
Java Build Path
then clickAdd Library
- Select
JRE System Library
- 点击
环境
,然后选择jdk1.7.0_45
-
完成
- Click
Environments
and select thejdk1.7.0_45
Finish
这是你应该看到,如果你这样做是正确的
这篇关于月蚀:指定安装JRE不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!