Tuesday, May 31, 2011

Eclipse is running in a JRE, but a JDK is required



When installing m2eclipse plugin, you might get an error like this in a eclipse console

"Eclipse is running in a JRE, but a JDK is required"

Problem can be solved simply by editing eclipse.ini file from your eclipse installation directory.

The key is that the -vm entry must come before the -vmargs entry. Also, make sure to have a line break between

-vm

and the path.

So in the eclipse.ini file:

THIS WILL NOT WORK:
-vm C:\java\jdk\bin\javaw.exe

BUT THIS WILL:
-vm
C:\java\jdk\bin\javaw.exe

1 comment:

Best hosting company for small business said...

Thanks for this great post it was very informative and helped me with my own project I am attempting to complete.