How to install Java JDK Java Development Kit on mac.
In Mac OS or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. bash_profile or ~/.profile.
Find out where is JDK 14.
$ /usr/libexec/java_home -v14
/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
Really helpful post, thanks. I would like to ask, but who knows good applications and programs for the MacBook? I just recently started using a laptop on macos, but I really like it, but I don't know what applications to install on it.