Maven requires Eclipse using a JDK, i.e. Java Development Kit, instead of a Java Runtime Environment (JRE). The main difference is that a JDK also contains a Java Compiler and other tools to develop Java Code, while the JRE is only able to run compiled Java applications.
To check with what Java version (JRE or JDK) Eclipse is running, do the following:
Help > About Eclipse". (On the Mac, it's in the Eclipse-menu, not the Help-menu)Installation Details".Configuration"-vm". The line following it shows which Java binary is used.Depending on the name and location of the used Java binary one can figure out if a JRE or a JDK is used:
C:\Program Files\Java\jre6\bin\client\jvm.dll) it is a JREIf no JDK is used for eclipse, change it:
eclipse.ini in a text editor.-vmargs"-vmargs", add two lines:-vm".C:\Program Files\Java\jdk1.6.0_17\bin\javaw.exe" on Windows)