[英]Eclipse: No Java virtual machine was found after searching the following locations: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/
I opened Eclipse: 我打开Eclipse:
I got this Error: 我有这个错误:
My OS: 我的OS:
Text: 文本:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. 必须提供Java运行时环境(JRE)或Java Development Kit(JDK)才能运行Eclipse。
No Java virtual machine was found after searching the following locations: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/bin 搜索以下位置后未找到Java虚拟机:/ Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/bin
In something version of eclipse the path for eclipse.ini: /Eclipse.app/Contents/Eclipse/eclipse.ini
在某个版本的eclipse中eclipse.ini的路径:
/Eclipse.app/Contents/Eclipse/eclipse.ini
put this: 把这个:
/Library/Java/JavaVirtualMachines/VERSION.jdk/Contents/Home/jre/bin/
When you encounter this error, most probably you or system has updated the Java and the path for the Java virtual machine has changed. 当您遇到此错误时,很可能您或系统已更新Java并且Java虚拟机的路径已更改。 Updating the VM path as other answers work but you will have to repeat the same exercise again when Java version updates again.
在其他答案工作时更新VM路径,但是当Java版本再次更新时,您将不得不重复相同的练习。 Following is the solution I use to get out of this cycle.
以下是我用来摆脱这个循环的解决方案。
ls -l /usr/bin/java
ls -l /usr/bin/java
-vm
parameter with the symlink from the terminal. -vm
参数替换为终端的符号链接。 It would most probably be /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.