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

Installing Java 8

Follow the instructions below to install Java 8:

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and click on the appropriate version. I have selected the 64-bit Windows version since mine is a Windows machine.
  2. Once the file has downloaded, run the .exe file. Java will start installing it onto your machine. Next, we have to set two environment variables in order to use Java.
  3. Go to Control Panel and click Advanced System Settings.
  4. Click on Environment variables and add two system variables:
    • One is JAVA_HOME. Provide the path of the root folder where Java is installed. In this case, this will be C:\Program Files\Java\jdk1.8.0_152.
    • The second is the Path variable. Remember that this variable has to be appended after adding a ;. Here, the path of the bin folder has to be specified. In this case, this will be C:\Program Files\Java\jdk1.8.0_152\bin.
  5. The next step is to check our configuration. Open the Command Prompt and type java –version:

If you get an output similar to the one shown in the preceding screenshot, you are all set to start coding.

Now, let's get our hands dirty!

主站蜘蛛池模板: 武清区| 武川县| 汝州市| 满洲里市| 平度市| 防城港市| 保靖县| 永吉县| 金昌市| 虎林市| 平凉市| 呼图壁县| 松阳县| 周宁县| 望谟县| 郓城县| 青河县| 沧州市| 太谷县| 公主岭市| 外汇| 岚皋县| 吐鲁番市| 呼图壁县| 涞水县| 和平区| 盐源县| 兴义市| 萨迦县| 新蔡县| 云梦县| 凌海市| 堆龙德庆县| 萝北县| 岳阳县| 商河县| 道真| 桐庐县| 潍坊市| 皋兰县| 佳木斯市|