Eclipse下Maven插件Eclipse is running in a JRE, but a JDK is required解决办法

Eclipse安装m2eclipse插件后启动出现警告:

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

 

解决办法:

1.window->preferences->Java->Installed JREs

新建一个Standrad VM指向JDK安装路径,如C:\Program Files\Java\jdk1.6.0_27,设为默认。

2.编辑eclipse.ini

在-vmargs前添加
-vm
C:\Program Files\Java\jdk1.6.0_27\jre\bin\javaw

你可能感兴趣的:(eclipse)