JAVA_HOME 设置为无效目录: [英] JAVA_HOME is set to an invalid directory:

查看:50
本文介绍了JAVA_HOME 设置为无效目录:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的系统中设置了 JAVA_HOME C:Program FilesJavajdk1.8.0_131in; 并且我正在尝试在命令提示符下运行cordova命令(cordova build),但出现以下错误.我已经尝试了所有方法,但无法解决此问题:

I have set JAVA_HOME in my system C:Program FilesJavajdk1.8.0_ 131in; 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:ProgramFilesJavajdk1.8.0_131in;

ERROR: JAVA_HOME is set to an invalid directory: C:Program FilesJavajdk1.8.0_ 131in;

请在您的环境中设置 JAVA_HOME 变量以匹配您的 Java 安装位置.

Please, set the JAVA_HOME variable in your environment to match the location of your Java installation.

推荐答案

你应该用C:Program FilesJavajdk1.8.0_12设置它.

You should set it with C:Program FilesJavajdk1.8.0_12.

in 不是必需的.

in is not required.

这篇关于JAVA_HOME 设置为无效目录:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆