JAVA_HOME is set to an invalid directory:

前端 未结 15 2169
梦毁少年i
梦毁少年i 2020-12-01 04:06

I have set JAVA_HOME in my system C:\\Program Files\\Java\\jdk1.8.0_ 131\\bin; and I am trying to run cordova command( cordova build ) on command p

15条回答
  •  悲&欢浪女
    2020-12-01 04:33

    JAVA_HOME should point to the home jdk directory, and not to jdk/bin directory.

    You need to set the JAVA_HOME like this:

    JAVA_HOME="C:\Program Files\Java\jdk1.8.0_131"
    

提交回复
热议问题