- Mastering Apache Storm
- Ankit Jain
- 136字
- 2021-07-02 20:32:28
Installing Java SDK 7
Perform the following steps to install the Java SDK 7 on your machine. You can also go with JDK 1.8:
- Download the Java SDK 7 RPM from Oracle's site (http://www.oracle.com/technetwork/java/javase/downloads/index.html).
- Install the Java jdk-7u<version>-linux-x64.rpm file on your CentOS machine using the following command:
sudo rpm -ivh jdk-7u<version>-linux-x64.rpm
- Add the following environment variable in the ~/.bashrc file:
export JAVA_HOME=/usr/java/jdk<version>
- Add the path of the bin directory of the JDK to the PATH system environment variable to the ~/.bashrc file:
export PATH=$JAVA_HOME/bin:$PATH
- Run the following command to reload the bashrc file on the current login terminal:
source ~/.bashrc
- Check the Java installation as follows:
java -version
The output of the preceding command is as follows:
java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
推薦閱讀
- Java程序設計(慕課版)
- PostgreSQL Replication(Second Edition)
- C#程序設計
- Mastering Apache Maven 3
- MATLAB 2020從入門到精通
- Java程序設計入門
- Scala for Machine Learning(Second Edition)
- Swift 4從零到精通iOS開發(fā)
- Spring+Spring MVC+MyBatis從零開始學
- Learning Splunk Web Framework
- Flask Web開發(fā):基于Python的Web應用開發(fā)實戰(zhàn)(第2版)
- 超好玩的Scratch 3.5少兒編程
- C語言程序設計教程
- MySQL核心技術與最佳實踐
- Azure for Architects