## Maven Integration Requires that Eclipse be running in a JDK

After adding Maven to Eclipse this error keeps popping up about “maven integration requires that eclipse be running in a jdk”. Basically Maven is using a JRE but needs a JDK.

First ensure that you have a JDK running and Eclipse sees it (via Window > Preferences > Java…”

Then you need to edit eclipse.ini and tell it where the JDK is using the following lines
```-vm C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe```

It seems to need to be spread onto 2 lines i.e. the -vm first and then the path to your jdk.

Tagged on: