ERROR: JAVA_HOME is set to an invalid directory.
2017-05-30 15:19
344 查看
ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = D:/jdk1.5.0_15;
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
maven执行mvn命令的时候,可能回出现上面的错误。
先看java -version, 看JAVA_HOME是否正确,注意里面的分号不能用中文的。
我用了JDK1.8 和 1.7,在JAVA_HOME中用分号隔开设了两个路径, 后来删掉一个只保留一个, 重启控制台就好了。
JAVA_HOME = D:/jdk1.5.0_15;
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
maven执行mvn命令的时候,可能回出现上面的错误。
先看java -version, 看JAVA_HOME是否正确,注意里面的分号不能用中文的。
我用了JDK1.8 和 1.7,在JAVA_HOME中用分号隔开设了两个路径, 后来删掉一个只保留一个, 重启控制台就好了。
相关文章推荐
- ERROR:JAVA_HOME is set to an invalid directory
- myeclipse 8.6 安装maven3.0报错ERROR: JAVA_HOME is set to an invalid directory
- maven设置中ERROR: JAVA_HOME is set to an invalid directory.
- maven设置中ERROR: JAVA_HOME is set to an invalid directory
- ERROR: JAVA_HOME is set to an invalid directory. JAVA_HOME = "D:\tools\jdk\jdk1.8.0_73" Please set t
- 配置mavenERROR: JAVA_HOME is set to an invalid directory
- 安装Maven,运行mvn archetype:generate后出现 ERROR: JAVA_HOME is set to an invalid directory.
- ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_ 73\bin
- 安装Maven出现 ERROR: JAVA_HOME is set to an invalid directory.
- ERROR: JAVA_HOME is set to an invalid directory: **\jdk1.8\jdk 1.8.0_05
- 安装Maven,运行mvn -v后出现 Error: JAVA_HOME is set to an invalid directory.(图片可能太大,无法显示,有时间再上传)
- myeclipse 8.6 安装maven3.0报错ERROR: JAVA_HOME is set to an invalid directory
- Error: JAVA_HOME is set to an invalid directory.解决办法
- 配置gradle时,一直报错提示:ERROR: JAVA_HOME is set to an invalid directory: D:\Java\jdk1.8.0_144;
- maven设置中ERROR: JAVA_HOME is set to an invalid directory
- ERROR: JAVA_HOME is set to an invalid directory
- ERROR:JAVA_HOME is set to an invalid directory
- Maven安装提示ERROR: JAVA_HOME is set to an invalid directory.
- maven配置错误,提示java_home is set to an invalid directory.
- Unable to install Maven on Windows: “JAVA_HOME is set to an invalid directory”