views:

59

answers:

2

After installed m2eclipse, I received a message saying that Eclipse needs to "run in a JDK" and to update the eclipse.ini to do so.

So I added this:

-vm
C:\Program Files (x86)\Java\jdk1.6.0_20

as the last two lines of the eclipse.ini file in my Eclipse installation directory.

However, I am again receiving this warning.

Did I not enter the command correctly?

+4  A: 

The value must be the full absolute path to the Java executable, not just to the Java home directory.

-vm
C:\Program Files (x86)\Java\jdk1.6.0_20\bin\javaw.exe

should work. source: http://wiki.eclipse.org/Eclipse.ini

Raoul Duke
A: 

It can be path to JDK if you're using command line. I usually create a shortcut to eclipse with extra parameter: -vm "path_to_jdk", it'll using jvm.dll(jvm.so) instead of java.exe,javaw.exe, so you won't see external process name java.exe in your process list.

secmask