Mac Java Home Directory

I forget the location of my home directory every time I upgrade Java on my Mac.

Looking at the environment variables in .bashrc, I'm convinced that it was, but I can't remember.

export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home"

By the way, I also leave the Java installation command with brew.

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk14

https://github.com/AdoptOpenJDK/homebrew-openjdk

Recommended Posts

Mac Java Home Directory
java directory creation
Install Java on Mac
Learning Java framework # 1 (Mac version)
How to uninstall Java 8 (Mac)
Java development environment (Mac, Eclipse)
Simplify java version switching (Mac)
Java installation location for mac
[OpenCV3.2.0] Eclipse (Java) settings (for Mac)
Java build with mac vs code
Build Java development environment (for Mac)
Java
Initial introduction to Mac (Java engineer)
[Java] Reference / update of Active Directory
[Java & SpringBoot] Environment Construction for Mac
Java development environment (Mac, VS Code)
Java
Install Java development environment on Mac
Directory information of DEFAULT_CERT_FILE in Mac ruby 2.0.0
Memo: [Java] Check the contents of the directory
Java development environment construction memo on Mac
How to switch Java versions on Mac
What is Java and Development Environment (MAC)
[Java] How to get the current directory
Build a Java development environment on Mac
Hello World on Mac VS Code Java
Directory change monitoring method memo (Java, Kotlin)
Download and install Eclipse (Java) (Mac version)
[Mac] Install Java in Visual Studio Code
[Java8] Search the directory and get the file
Java installation (Mac, Homebrew, multiple version control)