Skip to content

Instantly share code, notes, and snippets.

@ashimjk
Created April 24, 2020 19:11
Show Gist options
  • Save ashimjk/40baf800e7cc376987ce9f3a7ea6d0f8 to your computer and use it in GitHub Desktop.
Save ashimjk/40baf800e7cc376987ce9f3a7ea6d0f8 to your computer and use it in GitHub Desktop.
# Install Maven
brew install maven
# Above maven install openjdk 13 as a dependency
# If it needs to be overide then
brew uninstall --ignore-dependencies openjdk
# Following lines are only valid if you installed adoptedopenjdk
# See here - Install Open JDK in Mac (https://gist.github.com/ashimjk/e6c0cdb9ac19e21ece2e221ee22ac21b)
# If any error with java -version then reinstall
brew cask reinstall adoptopenjdk8
# Open .bash_profile and add following lines
export JAVA_HOME_8=$(/usr/libexec/java_home -v1.8)
# Java 8
export JAVA_HOME=$JAVA_HOME_8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment