2.1. Install Java JDK

  1. Cài đặt Java JDKarrow-up-right 11 trở lên

2. Thiết lập biến môi trường JAVA_HOME

    Save and close the file.

    Open a Terminal and run the source command to apply the changes:

    $ source ~/.bash_profile

    Now we can check the value of the JAVA_HOME variable:

    $ echo $JAVA_HOME

    The result should be the path to the JDK installation:
  
    $ /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home

Last updated