Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify jdk path in eclipse.ini on windows 8 when path contains space

Tags:

java

eclipse

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)

like image 741
user310291 Avatar asked Apr 19 '14 19:04

user310291


People also ask

How does Eclipse find JDK?

As far as I know, to invoke the JVM, Eclipse executes the java command, so, if it's at your system execution path, Eclipse won't need to find the instalation directory. So, Eclipse first looks inside its eclipse/jre dir for installed VMs, if empty, consults the eclipse.


1 Answers

Have you tried it. Don't put everything in single line.

-vm C:\Program Files\Java\jdk1.6.0_07\bin\ 

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.

like image 100
Braj Avatar answered Oct 26 '22 14:10

Braj