Run Eclipse with a JDK

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:

Depending on the name and location of the used Java binary one can figure out if a JRE or a JDK is used:

If no JDK is used for Eclipse, change it: