Eclipse - Mac OS 默认 JRE 缺失
已安装的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
我刚刚遇到了同样的问题,并且能够解决它。我安装了 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!
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.
自 eclipse3.3(2006!)以来,一直出现“MacOS 上不支持标准 VM”消息。
bug 156343 报告已修复... eclipse3.6M2 (Helios,M2 2009 年 9 月发布,最终版本将于 2010 年 6 月发布)
如果根本没有 JVM,请尝试在 eclipse.ini 中明确指定一个(例如 我建议的一个,除了我使用类似Windows的路径),看看是否仍然没有建议的JVM重启后此列表。
还可以使用 Helios3.6M3 进行检查(当前可用的最新里程碑,并检查所有问题是否仍然存在。
当前的解决方法(即,如果首先存在默认虚拟机)是,例如对于像 JRockit 这样的 JDK:
3.6M2 将授权此操作,例如:
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:
The 3.6M2 will authorize this, for instance:
我将我的java版本更新到11,并且我在eclipse中的Spring Boot项目也崩溃了。
以下是我修复此问题的方法:
(Eclipse 将为您找到 JRE 路径)
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)
Screenshot of Eclipse -> Preferences -> Java -> Installed JREs
Screenshot of Eclipse -> Finding JRE Path
Screenshot of Eclipse -> Selecting JRE Path
那里有一个“添加”按钮,可以让您添加新的 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.
我不确定你的问题到底是什么...
如果你想知道 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.如果你想要 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.
我在使用相同版本的 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.
Eclipse 火星
Eclipse 市场 ->输入“Java”并安装“
Java 8 support for Eclipse Kepler SR2
”Eclipse Mars
Eclipse Market Place -> Type "Java" and install "
Java 8 support for Eclipse Kepler SR2
"