My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping @Yeyhi.com

Pages










Monday, November 23, 2020

Update Variables using BAsh_Profile in MAC/LInux

Sometimes you need to update the environment variables permanently. I have found setting JAVA_HOME and M2_HOME as an important and recurring requirement while working in Adobe, Symantec and even at Expedia Group. I am listing the steps here. Its simple :)


Steps:

  1. Open Bash profile: vi ~/.bash_profile
  2. Append: export M2_HOME=/Users/mfaiz/Projects/apache-maven-3.6.0/bin
  3. export PATH=$PATH:$M2_HOME
  4. export JAVA_HOME=/Users/mfaiz/my-jdk/Mac
  5. On terminal run: source ~/.bash_profile
  6. You can verify the install using: mvn - - version (This will show you version eg 3.6.0 in my case)


No comments:

Post a Comment