Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders.
错误:Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders
在网上查了好多解决方法,都是说明了一半。就是在eclipse.ini 文件内加jdk\bin的路径,其实我们要注意一个细节,就是eclipse.ini 第一行是-startup ,恩,我们需要是他启动之前加载jdk,我们就必须把路径放到-startup 之前。
-vm
/usr/java/jdk1.6.0_31/jre/bin/
重启就 ok了。