Eclipse将在缺省情况下try 使用缺省的"java.exe
"(PATH
引用的第一个值)启动
要记住三件事:
- "安装"一个JRE or a JDK可以像从另一台计算机解压或复制它一样简单:没有特殊的安装步骤,并且可以有很多不同的JVM版本(1.4、5.0、6.0…)根据您的需要,"安装"(复制)磁盘上的几乎任何位置.
- I would recommend to always run Eclipse with the lastest JRE possible (to benefit from the latest hotspot evolutions).
You can:
- 在Eclipse会话中,您将引用的JVM始终是用于启动Eclipse的JVM,因为:
2012年6月,jmbertucci条 comments :
I'm running Windows 7 64-bit and I had the 32-bit JRE installed.
I downloaded Eclipse 64-bit which looks for a 64-bit JRE.
Because I didn't have the 64-bit JRE it threw the error, which makes sense.
我转到Java手动安装页面(该页面没有您希望的那么直接访问),安装了64位版本.见"Java Downloads for All Operating Systems".
2016年4月:Steve Mayne加in the comments:
我必须编辑eclipse.ini
文件以引用正确的Java路径-