How to specify jdk path in eclipse.ini on windows 8 when path contains space
Have you tried it. Don't put everything in single line.
-vm
C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe
Need to put the folder that contains the javaw or java executable. Under Ubuntu 18 with eclipse 4.7.1 I was able to get it to run with:
-vm
/usr/lib/jvm/java-8-openjdk-amd64/bin
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
-vmargs
-Xmx2G
-Xms200m
-XX:MaxPermSize=384m
If it doesn't work then please confirm you have added above lines before -vmargs
in eclipse.ini
.
Add the entry of vm above the vm args else it will not work..! i.e `
-vm C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m