- 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"
推薦閱讀
- Linux系統文件安全實戰全攻略
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- 曝光:Linux企業運維實戰
- 混沌工程:復雜系統韌性實現之道
- Java EE 8 Design Patterns and Best Practices
- Cassandra 3.x High Availability(Second Edition)
- Hadoop Real-World Solutions Cookbook
- Linux內核API完全參考手冊(第2版)
- 辦公自動化教程(Windows7+Office2010)
- Learning Joomla! 3 Extension Development(Third Edition)
- SAP后勤模塊實施攻略:SAP在生產、采購、銷售、物流中的應用
- Linux從入門到精通
- UNIX傳奇:歷史與回憶
- Windows 11使用方法與技巧從入門到精通
- OpenStack Trove Essentials