$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ source .bash_profile
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
Read More:
- Remember that Maven can’t recognize Java_ Home problem error: Java_ HOME is not defined correctly.
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Bug001: error in gradle configuration environment variable: ERROR:JAVA_ Home is set to an invalid directory!
- ERROR: JAVA_HOME is not set and could not be found.
- Error running ‘** [install]‘: No valid Maven installation found. Either set the home director
- When Dbeaver starts on Mac, it reports an error: “fail to create java virtual machine”
- Mac: how to show hidden files under Apple Mac operating system
- Problem in configuring Maven error: Java_ HOME not found in your environment.
- RabbitMQ Startup Script (How to Set)
- R language loading xlsx error error: JAVA_HOME cannot be determined from the Registry
- Mac & how to uninstall LANDesk
- How to set the custom blood bar UI in UE4 and how to call it
- How to delete software completely on MAC
- JIRA start error: the jira.home directory ‘/opt/jira_ home’ is already locked. JIRA startup failed, JIRA has been locked.
- Command not found: ADB appears on Mac
- How to Use Apt get Command Under Mac OSX
- Error attempting to get column time from result set. Cause: java.sql.SQLFe
- How to delete Microsoft AutoUpdate from Mac
- How to Fix RTL8188 “Set Mode” (8B06) Error
- How to uninstall CUDA driver and toolkit in Mac OS X?