Reputation: 3440
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?
Upvotes: 2
Views: 3254
Reputation: 18962
Unbelievable, the solution to this problem has nothing to do with slashes, backslashes, quotes, spaces, jre, jdk, jvm, javaw, ....
The answer is that you have 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
Upvotes: 0
Reputation: 131
After trying all the suggestions in this thread, the only thing I could to work with Eclipse Indigo was using a shortcut with the -vm switch on the end like this:
"C:\Program Files\Eclipse Indigo 3.7M6\eclipse.exe" -vm C:\Progra~1\Java\jdk1.7.0\bin\
Upvotes: 0
Reputation: 8107
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.
Upvotes: 0
Reputation: 4311
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
Upvotes: 5