官术网_书友最值得收藏!

Installing Java

If you have had the development machine set up before, you might have a couple of software and packages already installed. You can skip the installation part and check for the version of the installed packages. If the versions are significantly old, you might want to upgrade them.

For the new machines, follow the mentioned steps for installing Java:

  1. Visit the JDK download page and download the jdk-8uversion-macosx-xxx.dmg package based on your machine configuration (either the amd64 or x64).
  2. Install Java from the downloaded package.
  3. Once installed, launch the terminal and type in this command to determine the Java version:
      java -version
  1. You will see the following output if Java is installed correctly:
      java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
  1. Add the following line to your .bash_profile file. In Mac OSX 10.5 or later versions, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home:
      export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$PATH:$JAVA_HOME/bin

Now that we have finished installing Java, let's move on to installing Android SDK.

主站蜘蛛池模板: 来宾市| 如东县| 沽源县| 柏乡县| 绩溪县| 平江县| 安丘市| 平乐县| 敦煌市| 鄂伦春自治旗| 广灵县| 唐海县| 闻喜县| 车致| 祁连县| 旬阳县| 富平县| 冕宁县| 兰考县| 繁峙县| 曲水县| 扎赉特旗| 武安市| 雷山县| 景德镇市| 余江县| 顺义区| 潢川县| 桃园市| 夹江县| 连江县| 大荔县| 虹口区| 江孜县| 会昌县| 久治县| 汽车| 田林县| 吐鲁番市| 辰溪县| 化州市|