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

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" 
主站蜘蛛池模板: 景洪市| 马尔康县| 临城县| 楚雄市| 赤峰市| 伊金霍洛旗| 平陆县| 襄汾县| 星座| 邢台市| 墨玉县| 北海市| 越西县| 西林县| 阿城市| 育儿| 临湘市| 平潭县| 凤阳县| 洱源县| 嘉兴市| 乌鲁木齐县| 聂荣县| 五河县| 澄城县| 潜山县| 大关县| 旌德县| 建昌县| 岳池县| 东辽县| 桓台县| 南宁市| 岐山县| 孙吴县| 新巴尔虎左旗| 陇川县| 岳普湖县| 图们市| 鱼台县| 日土县|