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

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

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

    0 讨论(0)
  • 2020-12-08 09:30

    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.

    0 讨论(0)
  • 2020-12-08 09:31

    Try to escape the space with back slash.. Like

    C:\program\folder\ \name\java\jdk\bin

    0 讨论(0)
  • 2020-12-08 09:32

    Windows-vm "C:\Program Files\Java\jdk1.6.0_07\jre\bin\javaw.exe"

    0 讨论(0)
  • 2020-12-08 09:36

    Reinstall java and choose a destination folder without a space

    0 讨论(0)
  • 2020-12-08 09:41

    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

    0 讨论(0)
提交回复
热议问题