- 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)
推薦閱讀
- 微服務(wù)設(shè)計(jì)(第2版)
- Modular Programming with Python
- Delphi程序設(shè)計(jì)基礎(chǔ):教程、實(shí)驗(yàn)、習(xí)題
- 零基礎(chǔ)PHP學(xué)習(xí)筆記
- Java系統(tǒng)分析與架構(gòu)設(shè)計(jì)
- SQL學(xué)習(xí)指南(第3版)
- arc42 by Example
- Hadoop+Spark大數(shù)據(jù)分析實(shí)戰(zhàn)
- Java深入解析:透析Java本質(zhì)的36個(gè)話題
- 軟件測試教程
- MySQL程序員面試筆試寶典
- 嵌入式C編程實(shí)戰(zhàn)
- Manage Your SAP Projects with SAP Activate
- 軟件再工程:優(yōu)化現(xiàn)有軟件系統(tǒng)的方法與最佳實(shí)踐
- TensorFlow.NET實(shí)戰(zhàn)