How to change JAVA_HOME in macOS ? - ARTIKEL SALIM TEKNOLOGI

Latest

Artikel Bermanfaat Untuk Kita Semua

Sabtu, 15 Oktober 2022

How to change JAVA_HOME in macOS ?

 


Solution 1:

- Open App Android Studio
- Open your project
- Click Android Studio, check picture


- Expand Build Tools


- Change here 



Solution 2 :

- Open CMD / Terminal
- write this
export JAVA_HOME="your path jdk"

          example :

export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home"


- check your jdk installed

/usr/libexec/java_home -v version

          example :

/usr/libexec/java_home -v 11

Tidak ada komentar:

Posting Komentar