This doesn\'t work -vm %JAVA_HOME%/bin/javaw.exe
How can I replace %JAVA_HOME% with full path on windows 8 when path contains space (\"program files\" directory)
-vm C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe
All above answers didn't work for me. My Eclipse mars is x64 but I need to set registry dll to x86 for another software.
At the end I put -vm argument at the end of shortcut and this did the trick.
D:\mars\eclipse\eclipse.exe -vm "C:\Program Files\Java\jre7\bin\server\jvm.dll"
According to this doc jvm.dll also work for some cases.
Try to escape the space with back slash.. Like
C:\program\folder\ \name\java\jdk\bin
Windows-vm "C:\Program Files\Java\jdk1.6.0_07\jre\bin\javaw.exe"
Reinstall java and choose a destination folder without a space
Solution in:How do I set the eclipse.ini -vm option?
-vm C:\\bin
-vm
C:\<java_path>\bin
Must be the first thing in eclipse.ini