我只是追加 虚拟机 C:\Program Files\Java\jre6\bin\javaw.exe

在eclipse.ini中,然后我尝试再次启动eclipse,并得到这个错误。告诉我怎么解或者链接能解出来。

这是eclipse。ini

-startup 
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
 --launcher.library
 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810 
-showsplash
 org.eclipse.platform
--launcher.XXMaxPermSize 256m 
--launcher.defaultAction 
openFile 
-vm 
C:\Program Files\Java\jre6\bin\javaw.exe
-vmargs 
-Xms40m 
-Xmx384m

谢谢你!


当前回答

1)打开SpringToolSuite4.ini文件。 2)在SpringToolSuite4.ini文件中搜索“openFile”文本。 3)在SpringToolSuite4.ini中提供javaw.exe文件位置 4)注意:提供-vm和你的javaw.exe文件路径之间的新行,如下所示。

openFile 虚拟机 C:\Program Files\Java\jdk1.8.0\bin\javaw.exe —vmargs -Dosgi.requiredJavaVersion = 1.8 -Xms256m

其他回答

1)打开SpringToolSuite4.ini文件。 2)在SpringToolSuite4.ini文件中搜索“openFile”文本。 3)在SpringToolSuite4.ini中提供javaw.exe文件位置 4)注意:提供-vm和你的javaw.exe文件路径之间的新行,如下所示。

openFile 虚拟机 C:\Program Files\Java\jdk1.8.0\bin\javaw.exe —vmargs -Dosgi.requiredJavaVersion = 1.8 -Xms256m

在我的案例中,JAVA路径没有在Env变量中设置。在Env path中设置正确路径后开始工作。

在命令提示符中输入javac,并确保JAVA PATH正确。

在我的情况下,我安装Java 64位,并使用64位eclipse,错误消失了。你可以这样组合

64位Java - 64位系统- 64位eclipse 32位Java - 32位系统- 32位eclipse 32位Java - 64位系统- 32位eclipse

在所有这些情况下,我们永远不会看到这个错误。

请看消息框的第二行。在这里,您可以看到实际上启动了哪个java运行时。我的突然变成了C:\ProgramData\Oracle\Java\javapath\javaw.exe。这发生在我安装了“chrome java更新器”之后(chrome浏览器抱怨说:“你的java已经过时了,你必须更新……”)。

Before this "chrome java update" my eclipse (luna jee x64) started without error. Looking closer to the background I detected following: the chrome java updater (notabene started from an Oracle site) added C:\ProgramData\Oracle\Java\javapath in front of the env var PATH. It contains three symbolic links to the newest java 8 JRE installation in (x86) program folder -> hence to a 32 bit java JRE. Oracle replaces with Java8 the old technique having the symlinks in system32 (64bit) resp. SysWOW64 (32bit).

Meanwhile I learned. Whatever java installer you have executed last (the *.exe) leads windows to remember that java flavour (32b or 64b), with the result that after an update the links in C:\ProgramData\Oracle\Java\javapath point to a java installation of the remembered flavour. If you have a 64b eclipse installation and encounter the described error: just re-install the newest 64b JDK. After that the java updates do no more link to a 32b version. And eclipse 64b will start correctly without the entry in eclipse.ini .

最近我也遇到了同样的问题。我的eclipse版本不支持java版本8。

我不小心在我的机器上安装了jre 8,它通过在开始时附加“C:\ProgramData\Oracle\Java\javapath”来自动更新我的PATH变量,这导致eclipse选择这个版本(并忽略手动添加的1.6版本,它是后来的顺序),并崩溃退出代码13。

我只是从路径中删除了这个字符串,从而导致系统选择我的旧版本,eclipse开始正常。