- Learning Continuous Integration with Jenkins(Second Edition)
- Nikhil Pathania
- 145字
- 2021-07-02 21:18:36
Installing Java
Follow these steps to install Java:
- Download the latest version of Java JRE (x86 or x64 based on your OS) from https://java.com/en/download/manual.jsp.
- Follow the installation procedures.
- To check that Java has been installed successfully, run the following command using Command Prompt:
java -version
- 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)
- To set the JAVA_HOME, first get the Java installation path on Windows using the following command:
where java
- 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
- 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"
推薦閱讀
- Mastering vRealize Operations Manager(Second Edition)
- 從零開始寫Linux內核:一書學透核心原理與實現
- Kali Linux滲透測試全流程詳解
- Windows Server 2012 Hyper-V Cookbook
- 玩到極致 iPhone 4S完全攻略
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 嵌入式Linux應用開發菜鳥進階
- Windows Server 2012網絡操作系統企業應用案例詳解
- 直播系統開發:基于Nginx與Nginx-rtmp-module
- Windows 7案例教程
- Windows Server 2008組網技術與實訓(第3版)
- Linux內核API完全參考手冊(第2版)
- Linux從入門到精通(視頻教學版)
- Mastering Eclipse Plug-in Development
- Apache ShardingSphere權威指南