JAVA_HOME设置为无效目录: [英] JAVA_HOME is set to an invalid directory:
问题描述
我在我的系统中设置了 JAVA_HOME
C:\Program Files \ Java \ jdk1.8.0_
我试图在命令提示符下运行cordova命令(cordova build),但是我收到了错误。我已尝试过所有方法,但无法解决此问题:
131 \\ \\ bin;
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 prompt, but I'm getting the error bellow. I have tried all the ways, but not able to resolve this issue:
错误:JAVA_HOME设置为无效目录:C:\\ \\ Program
Files \ Java \ _jdk1.8.0_ 131 \ bin;
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_ 131\bin;
请设置<$您的环境中的c $ c> JAVA_HOME 变量,以匹配Java安装的
位置。
Please, set the JAVA_HOME
variable in your environment to match the
location of your Java installation.
推荐答案
您应该使用 C:\Program Files \ Java \ jdk1.8.0_12
设置它。
You should set it with C:\Program Files\Java\jdk1.8.0_12
.
\bin
不是必需的。
\bin
is not required.
这篇关于JAVA_HOME设置为无效目录:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!