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

Installing Java

Follow these steps to install Java:

  1. Download the latest version of Java JRE (x86 or x64 based on your OS) from https://java.com/en/download/manual.jsp.
  2. Follow the installation procedures.
  3. To check that Java has been installed successfully, run the following command using Command Prompt:
        java -version 
  1. You should get the following output:
        java version "1.8.0_121" 
        Java(TM) SE Runtime Environment (build 1.8.0_121-b13) 
        Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) 
  1. To set the JAVA_HOME, first get the Java installation path on Windows using the following command:
        where java 
  1. The previous command should output the Java installation path, as shown in the following command. Copy the path without \bin\java:
        C:\Program Files\Java\jdk1.8.0_121\bin\java 
  1. Open the Command Prompt as an administrator and run the following command to set the JAVA_HOME path. Make sure to use the Java installation path that appears on your screen:
        setx -m JAVA_HOME "C:\Program Files\Java\jdk1.8.121" 
主站蜘蛛池模板: 独山县| 塔河县| 彰化市| 泽州县| 高州市| 庐江县| 揭东县| 普格县| 西吉县| 城市| 南宫市| 朝阳县| 正蓝旗| 临城县| 修武县| 绥中县| 炎陵县| 屏南县| 灵丘县| 巩义市| 汽车| 望谟县| 桦南县| 万宁市| 延边| 太谷县| 临江市| 桂阳县| 三江| 凉城县| 元氏县| 文水县| 靖州| 阳西县| 大足县| 伽师县| 五莲县| 大宁县| 梧州市| 阆中市| 新疆|