执行maven命令 Error: JAVA_HOME is not defined correctly executing maven
来源:互联网 发布:php 点击链接下载文件 编辑:程序博客网 时间:2024/06/07 02:21
Assuming you use bash shell and installed Java with the Oracle installer, you could add the following to your .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)export PATH=$JAVA_HOME/jre/bin:$PATH
This would pick the correct JAVA_HOME
as defined by the Oracle installer and will set it first in your $PATH
making sure it is found.
Also, you don't need to change it later when updating Java.
参考:https://stackoverflow.com/questions/27319495/error-java-home-is-not-defined-correctly-executing-maven
阅读全文
0 0
- 执行maven命令 Error: JAVA_HOME is not defined correctly executing maven
- Maven, JAVA_HOME is not defined correctly on Mac OSX
- maven 配置(安装)以及遇到的The JAVA_HOME environment variable is not defined correctly.
- maven 的一些配置和常见错误(The JAVA_HOME environment variable is not defined correctly. This environment vari)
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- The JAVA_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- the java_home environment variable is not defined correctly
- Tomcat the java_home environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- JRE_HOME错误 The JAVA_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- 解决The JAVA_HOME environment variable is not defined correctly
- 解决The JAVA_HOME environment variable is not defined correctly
- the java_home environment variable is not defined correctly This environment variable is needed to r
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- 双击startup.bat,启动不了tomcat,JAVA_HOME environment variable is not defined correctly
- mysql数据库优化总结(心得)
- JQuery解决jsonp问题,后台采用java
- Android Fk: PKMS(3)之installd及LocalSocket实现Java层与Native层通信
- 8.1
- Java基础之反射的三种实现方式
- 执行maven命令 Error: JAVA_HOME is not defined correctly executing maven
- 1-13yum安装和更新软件包
- OpenSessionInViewFilter原理以及为什么要用OpenSessionInViewF
- Spring和MyBatis的整合的查询小案例
- Java模块 -- BigDecimal 高精度数字计算
- 推荐算法的可扩展性之hadoop篇(待续...)
- 并行和并发之间的异同
- Codeforces Round #427 (Div. 2) 题解(挺好的)
- neo2 装完maven 3.5后新建项目报org.apache.maven.plugin.war.WarMojo错误解决办法