Francis Mariano
03/15/2023, 8:39 PMERROR: JAVA_HOME is set to an invalid directory
.
So, I updated the environment variable to match the new local, but xcode is not processing the update. I already restart the macOS. Any idea?mbonnin
03/15/2023, 8:42 PMmbonnin
03/15/2023, 8:42 PMFrancis Mariano
03/16/2023, 10:55 AMDave
03/16/2023, 1:30 PM$ ls -l /Library/Java/JavaVirtualMachines
If it's not there try installing java/openjdk using homebrew then symlink it to the JavaVirtualMachines Library.
$ brew install java
$ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
Rodrigo Munera
10/06/2023, 4:34 PM