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

后端 未结 14 895
时光取名叫无心
时光取名叫无心 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

    if you are using mac, proceed with following steps:

    1. Move to following directory:

      /sts-bundle/STS.app/Contents/Eclipse
      
    2. Add the java home explicitly in STS.ini file:

      -vm
      /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin
      -vmargs
      

    Make sure not to add all the statements in single line

提交回复
热议问题