Eclipse:指定的JRE安装不存在

编程入门 行业动态 更新时间:2024-10-19 14:31:22
本文介绍了Eclipse:指定的JRE安装不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我以前使用Eclipse配置好,工作正常。但是我刚刚卸载它,并在今天的Mac OS 10.10上再次安装了Eclipse Juno。 但是我不断得到这个错误:指定的JRE不存在。

我知道这是一个非常简单和常见的问题,我只需要将JRE和/或JDK安装到这个干净的Eclipse中,但是没有办法解决问题。

我在Stack Overflow上广泛搜索:我看过的帖子包括: 如何在Mac OS X上安装JRE 1.7并将其与Eclipse一起使用?我遵循所接受的答案,但是在下载来自 www.oracle/technetwork/java的JDK /javase/downloads/index.html 并安装它,我将通过首选项 - > Java - >安装的JRE将它添加到Eclipse中,但是我没有按预期方式看到它,下面是一个截图我看到什么en我去了首选项 - > Java - >安装的JRE

但截图只是说安装的JRE列表是BLANK,我无法将任何JRE添加到我的Eclipse中。

帮助?

另外,我尝试过别人建议的其他东西:属性 - > Java构建路径我在这里看到的是: JRE系统库OSGi /最小1.2,前面有一个红色十字路口(表示有问题吗?)所以,我也是阻止这种方式。

解决方案

我也有同样的问题。这是我如何修复它。

  • 打开Eclipse。
  • 转到首选项。
  • 点击添加
  • 应该弹出一个窗口:
  • 选择标准VM 。
  • 选择目录
  • 使用此路径:库/ Java / JavaVirtualMachines / jdk1.7.0_45.jdk / Contents / Home /
  • 点击打开
  • 然后完成
  • 右键单击您的项目,然后单击属性
  • 选择 Java构建路径然后单击添加库
  • 选择 JRE系统库
  • 点击环境,然后选择 jdk1.7.0_45
  • 完成
  • 这是你应该看到的,如果你做的正确:

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

    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.

    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 www.oracle/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

    But the screenshot just says the installed JREs list is BLANK, I couldn't add any JRE into my Eclipse.

    Help please?

    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.

  • Open Eclipse.
  • Go to Preferences.
  • Click Add
  • A Window should popup with this:
  • 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 click Add Library
  • Select JRE System Library
  • Click Environments and select the jdk1.7.0_45
  • Finish
  • This is what you should see if you did it right:

    更多推荐

    Eclipse:指定的JRE安装不存在

    本文发布于:2023-11-15 22:35:42,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1598563.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:不存在   Eclipse   JRE

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!