" Java运行时错误环境...搜索后没有找到Java虚拟机..."

时间:2014-09-19 16:03:00

标签: eclipse

我刚刚在我的Windows 8计算机上安装了eclipse,并且在尝试运行eclipse时出现此错误。我真的不确定我的计算机上已经安装了Java SDK。

错误讯息:

enter image description here

我的Eclipse.ini文本文件(它在textpad中只有一个长行):

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

2 个答案:

答案 0 :(得分:0)

尝试右键单击eclipse图标并“以管理员身份运行”,值得一试!

答案 1 :(得分:0)

修正了以下内容: -vm C:\ Program Files \ Java \ jdk8 \ bin \ javaw.exe

之前-vmargs 确保在-vm

之后有一个新行