eclipse 安装 maven 启动老报错

Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.

 

 

method1:

在eclipse.ini中添加VM启动参数,制定eclipse启动使用的vm,修改后的文件内容如下
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm

C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

 

method2:

创建一快捷方式,起始目标为:D:\***\eclipse.exe -vm C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe

 

method3:

进入eclipse,->window->preference->java->installed JREs,将按装的JDK路径添加进来

 

 

你可能感兴趣的:(eclipse)