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

后端 未结 14 854
时光取名叫无心
时光取名叫无心 2020-12-08 08:56

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)

14条回答
  •  有刺的猬
    2020-12-08 09:25

    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.

提交回复
热议问题