Eclipse3.7.1,jdk7
Install the Maven plugin, restart Eclipse, and report a warning:
Eclipse is running in a JRE, but a JDK is required.
Some Maven plugins may isn't work when importing projects or updating source folders.
Search the method, is in the Eclipse.ini add this sentence:
-vm
D:/java/jdk1.7.0_02/bin/javaw.exe
But this time I did not know what I did, so that eclipse can not start, reported an error:
Error:could not create the Java Virtual MACHINE.R
ERROR:A Fatal exception has occurred. Program would exit.
OK, Google search, here to say in the Eclipse.ini to the-VM that I added before the removal. I removed the-VM item, and as a result Maven also reported a warning: Some maven plugins may not work when importing projects or updating source folders.
Later, I found the possible problem: the jdk6 used in my path, and my-VM pointed to jdk7.
Finally, keep the configuration in the path and eclipse.ini consistent and solve the problem: