Share

November 27, 2008

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

I installed m2eclipse on a new Windows Vista Laptop, and now everytime I open eclipse, the console will show:

11/27/08 12:07:25 PM PST: Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.

The fix for this is to add the following lines

-vm
C:\Java\jdk1.5.0_16\bin\javaw.exe

to the C:\Java\Apps\eclipse\eclipse.ini file in the eclipse app dir.