- 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"
推薦閱讀
- Getting Started with oVirt 3.3
- Social Media Mining with R
- Red Hat Enterprise Linux 8系統(tǒng)管理實戰(zhàn)
- Learning Windows Server Containers
- Extending Puppet
- Java EE 8 Design Patterns and Best Practices
- Linux自動化運維:Shell與Ansible(微課版)
- 嵌入式實時操作系統(tǒng):RT-Thread設(shè)計與實現(xiàn)
- STM32庫開發(fā)實戰(zhàn)指南:基于STM32F4
- Android物聯(lián)網(wǎng)開發(fā)細致入門與最佳實踐
- Learn CUDA Programming
- Windows Vista終極技巧金典
- iOS 10快速開發(fā):18天零基礎(chǔ)開發(fā)一個商業(yè)應(yīng)用
- OpenVZ Essentials
- Zabbix監(jiān)控系統(tǒng)之深度解析和實踐