Eclipse - Mac OS 默认 JRE 缺失

发布于 2024-08-11 01:52:52 字数 178 浏览 6 评论 0原文

已安装的 JRE 列表为空,当我单击“添加”时,给出的唯一选项是 - 执行环境描述, 标准 1.1.x 虚拟机, 标准虚拟机。

没有 MacOS 默认 JRE 选项,选择标准 VM 会导致通常的“MacOS 不支持标准 VM”。

日食伽利略, Mac OS X 10.5.8。

任何建议非常感谢

The list of installed JRE's is empty, when I click "add" the only options I'm given are -
Execution Environment Description,
Standard 1.1.x VM,
Standard VM.

There's no option for a MacOS Default JRE and choosing standard VM results in the usual "Standard VM not supported on MacOS".

Eclipse Galileo,
Mac OS X 10.5.8.

Any suggestions much appreciated

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

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

发布评论

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

评论(9

习ぎ惯性依靠 2024-08-18 01:52:52

我刚刚遇到了同样的问题,并且能够解决它。我安装了 Eclipse for PHP (PDT),因为我无法让 PDT 与 Eclipse classic 一起使用。然后我发现新安装后,Java 文件将无法运行!但有一个简单的解决方案:

转到“帮助”->“安装新软件...”

选择:

Galileo - http:// /download.eclipse.org/releases/galileo

在编程语言下选择:

Eclipse Java Development Tools 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ

安装后您将找到您的 JRE!

I just had the same problem and I was able to fix it. I had installed Eclipse for PHP (PDT) because I couldn't get PDT to work with Eclipse classic. I then found out that with the new install, Java files won't run! But there's a simple solution:

Go to Help->Install New Software...

Select:

Galileo - http://download.eclipse.org/releases/galileo

Under Programming Languages choose:

Eclipse Java Development Tools 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ

Install and you'll find your JREs!

你是暖光i 2024-08-18 01:52:52

1)遵循约书亚的回答:
“帮助->安装新软件...
选择:伽利略 - http://download.eclipse.org/releases/galileo
在编程语言下选择:Eclipse Java Development Tools 3.5.x...”

2) 然后转到 Eclipse -> Preferences -> Java -> Installed JRE。

3) 单击 ADD。

4) 在“Installed JRE Types”下,您可以选择应该会看到之前丢失的“MacOS X VM”。选择此项并单击“下一步”。

5) 单击 JRE home 字段旁边的“浏览”按钮,对话框应显示“选择 JRE 安装的根目录”

6) 浏览到 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/主页

7) 单击“打开”。

8) 在 JRE 名称字段中输入“JVM 1.5”

9) 从那里您应该能够单击“完成”并使您的 JRE 可用。

我用它来修复构建 Google App Engine 项目时缺少的 JRE 错误。

1) Follow Joshua's answer:
"Help->Install New Software...
Select: Galileo - http://download.eclipse.org/releases/galileo
Under Programming Languages choose: Eclipse Java Development Tools 3.5.x..."

2) Then go to Eclipse -> Preferences -> Java -> Installed JREs.

3) Click ADD.

4) Under 'Installed JRE Types" you should see the previously missing "MacOS X VM". Select this and click NEXT.

5) Click the BROWSE button next to the JRE home field, and the dialog box should say "Select the root directory of the JRE installation"

6) Browse to /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home

7) Click OPEN.

8) In the JRE name field type "JVM 1.5"

9) From there you should just be able to click FINISH and have your JRE available.

I used this to fix a missing JRE error building a Google App Engine project.

呆头 2024-08-18 01:52:52

自 eclipse3.3(2006!)以来,一直出现“MacOS 上不支持标准 VM”消息。

bug 156343 报告已修复... eclipse3.6M2 (Helios,M2 2009 年 9 月发布,最终版本将于 2010 年 6 月发布)


如果根本没有 JVM,请尝试在 eclipse.ini 中明确指定一个(例如 我建议的一个,除了我使用类似Windows的路径),看看是否仍然没有建议的JVM重启后此列表。
还可以使用 Helios3.6M3 进行检查(当前可用的最新里程碑,并检查所有问题是否仍然存在。


当前的解决方法(即,如果首先存在默认虚拟机)是,例如对于像 JRockit 这样的 JDK:

将 JRockit VM 的 jar 添加为库。
Mac 的类将优先(因为它们位于启动类路径上),但您还可以在附加捆绑包的 Jar 中看到任何详细信息。

为了保持 JDT 的理智,您可能应该确保 Mac 的 VM 排在第一位
.classpath 虽然...


3.6M2 将授权此操作,例如:

Installed JRE

The "Standard VM not supported on MacOS" message has been seen since eclipse3.3 (2006!).

The bug 156343 reports it fixed in the... eclipse3.6M2 (Helios, M2 released in September 2009, final version to be released in June 2010)


If there is no JVM at all, try to specify one explicitly in the eclipse.ini (like the one I propose, except I use Windows-like path), and see if there is still no JVM proposed in this list after restart.
Check that also with Helios3.6M3 (latest Milestone currently available, and check if all the issue is still there.


A current workaround (that is, if a default VM was there in the first place) would be to, for example for a JDK like the JRockit one:

add the JRockit VM's jars as libraries.
The Mac's classes will take precedence (since they're on the boot classpath) but you'll also be able to see any specifics in the Jar of the attached bundle.

To keep JDT sane, you should probably ensure that the Mac's VM comes first in
the .classpath though ...


The 3.6M2 will authorize this, for instance:

Installed JRE

飘过的浮云 2024-08-18 01:52:52

我将我的java版本更新到11,并且我在eclipse中的Spring Boot项目也崩溃了。
以下是我修复此问题的方法:

(Eclipse 将为您找到 JRE 路径)

  1. Eclipse ->首选项-> Java->安装的 JRE
  2. 单击右侧的搜索按钮,它将引导您找到更新的 JRE。
  3. 选择新更新的 JRE 并应用更改。 strong>

Eclipse 的屏幕截图 ->首选项-> Java->安装的 JRE

Eclipse 的屏幕截图 ->查找JRE路径

Eclipse的屏幕截图 ->选择JRE路径

I updated my java version to 11 and my Spring Boot project in eclipse also crashed.
Here's how I fixed this:

(Eclipse will find the JRE path for you)

  1. Eclipse -> Preferences -> Java -> Installed JREs
  2. Click on the Search button on the right and it will direct you to updated JREs.
  3. Select Newly Updated JRE and apply changes.

Screenshot of Eclipse -> Preferences -> Java -> Installed JREs

Screenshot of Eclipse -> Finding JRE Path

Screenshot of Eclipse -> Selecting JRE Path

抽个烟儿 2024-08-18 01:52:52

那里有一个“添加”按钮,可以让您添加新的 JVM。事实上,甚至应该有一个“查找 JVM”按钮。

如果您确实没有方便的JDK,只需从Sun 下载一个JDK,然后使用add 将其添加到您的JVM 列表中,并将其设置为默认值。

You have an "add" button in there which lets you add a new JVM. In fact, there should even be a "look for JVMs" button.

If you really don't have one handy, just download a JDK from Sun and then use add to add it to your list of JVMs, and set it to be the default.

夏夜暖风 2024-08-18 01:52:52

我不确定你的问题到底是什么...

如果你想知道 JVM/JDK 在 Mac OS X 上的位置,可以在 /System/Library/Frameworks/JavaVM.framework/ 中找到各种版本版本。只需将其中之一添加到 Eclipse 即可。

I'm not sure what exactly your question is...

If you want to know where the JVM/JDK resides on Mac OS X, the various versions can be found in /System/Library/Frameworks/JavaVM.framework/Versions. Just add one of these to Eclipse.

在梵高的星空下 2024-08-18 01:52:52

如果你想要 OSX 的内置 JVM,那么你可以将其添加为 Mac OSX VM,否则 VonC 的注释会告诉你该怎么做。

If you want OSX's built-in JVM, then you can add it as a Mac OSX VM, else the comment of VonC tells you what to do.

旧时浪漫 2024-08-18 01:52:52

我在使用相同版本的 Eclipse 和 Mac OS X 时遇到了同样的问题。一个小细节说明,它是 Eclipse 的 PHP 版本。我无法在 Eclipse 中确定解决方案,但下载普通版本的 Eclipse 就可以选择 Mac VM。

I had this exact problem with the same version of Eclipse and Mac OS X. A minor detail note, it was the PHP version of Eclipse. I couldn't determine a resolution within Eclipse, but downloading the normal version of Eclipse yielded the ability to select the Mac VM.

客…行舟 2024-08-18 01:52:52

Eclipse 火星

Eclipse 市场 ->输入“Java”并安装“Java 8 support for Eclipse Kepler SR2

Java 8 对 Eclipse Kepler SR2 的支持

Eclipse Mars

Eclipse Market Place -> Type "Java" and install "Java 8 support for Eclipse Kepler SR2"

Java 8 support for Eclipse Kepler SR2

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