export JAVA_HOME with spaces in Cygwin

后端 未结 7 948
失恋的感觉
失恋的感觉 2020-12-19 01:47

I\'m trying to set my JAVA_HOME in Cygwin with this command:

export JAVA_HOME=\"/cygdrive/c/Program Files/Java/jdk1.7.0_10\"

But when I do

7条回答
  •  我在风中等你
    2020-12-19 02:39

    on MSYS2 terminal

    checke for previous claim: ls "/C/program files/" !works! -thats for long file names so, to the point:

    export JAVA_HOME="/D/Devel/jdk-12.0.2"
    

    And now maven works....

    check:

    user55@DESKTOP MSYS ~
    # echo $JAVA_HOME
    /D/Devel/jdk-12.0.2
    

提交回复
热议问题