This article is not original, transferred from http://liguoliang.com/2010/eclipse-is-running-in-a-jre-but-a-jdk-is-required/
A warning message appears every time you install Maven:
Eclipse is running in a JRE, but a JDK was requiredsome Maven plugins may isn't work when importing projects or updating sour Ce folders.
Solve the problem in two steps:
1. Check the JRE that eclipse is using
' Java ', ' Preferences ', ' Window ', ' installed JREs ' determines that the JDK is being used rather than the JRE.
2. Configure Eclipse.ini
Review the Eclipse configuration file and Add/edit the following code:
-Vmc:\progra~2\JAVA\JDK1.6.0_16\JRE\BIN\JAVAW
Precautions:
1. First row parameter name, second behavior value, cannot be written to the same line
2. For the value of the second row, because no spaces are allowed, use progra~1 or 2 instead of program Files (x86).
If under Program files, use Progra~1, if under x86, use Progra~2
3. The position in the file can not be put to the last (after-vmargs), do not rest assured directly placed in the file, such as:
-Vmc:\progra~2\java\jdk1.6. 0_16\JRE\BIN\JAVAW-startup ... .. --launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.5-xms240m- xmx912m
Eclipse is running in a JRE, but a JDK is required workaround