erfsfj-dbc

mac 10.15.3 配置jdk与maven环境变量

 mac system 配置文件加载顺序

/etc/profile
/etc/paths 
~/.bash_profile 
~/.bash_login 
~/.profile 
~/.bashrc

sudo vim /etc/profile

 

JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home"

export JAVA_HOME

CLASS_PATH="$JAVA_HOME/lib"

PATH=".$PATH:$JAVA_HOME/bin"

 

export MAVEN_HOME=/Users/dengbicheng/workspace/tools/maven/apache-maven-3.6.3

export PATH=${MAVEN_HOME}/bin:$PATH

 

cmd  :wq! enter

source /etc/profile

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2021-04-30
  • 2021-11-14
  • 2021-12-15
  • 2021-12-15
  • 2018-04-10
猜你喜欢
  • 2021-12-09
  • 2022-01-22
  • 2021-11-30
  • 2021-09-25
  • 2021-11-19
  • 2021-09-08
相关资源
相似解决方案