Eclipse is running in a JRE, but a JDK is required错误的解决

Eclipse安装了Maven插件后,可能会报这种错误: “Eclipse is running in a JRE, but a JDK is required

有两种方法解决:

一。将JAVA_HOME设置为jdk目录,CLASSPATH和PATH中目录均为JDK目录,然后删除C:\WINDOWS\system32目录下的javaw.exe文件。

二。Eclipse.ini配置中指定-vm参数,修改如下重启Eclipse问题就解决了:

eclipse.ini 写道
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

你可能感兴趣的:(eclipse,jdk,maven,c,windows)