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

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!

主站蜘蛛池模板: 义乌市| 永福县| 凌云县| 黄大仙区| 古蔺县| 眉山市| 新宾| 农安县| 新建县| 开封县| 上杭县| 宜阳县| 青川县| 海城市| 十堰市| 甘泉县| 枞阳县| 兴城市| 麻阳| 长沙市| 苏尼特右旗| 肃宁县| 常德市| 双牌县| 磴口县| 繁峙县| 环江| 珠海市| 山西省| 平顶山市| 绿春县| 新绛县| 聂拉木县| 金乡县| 枣强县| 沈丘县| 雷波县| 潜山县| 白朗县| 遂平县| 克山县|