- 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)
推薦閱讀
- Oracle WebLogic Server 12c:First Look
- Spring 5.0 By Example
- iOS開發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到App Store上架
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- Java Web開發(fā)技術(shù)教程
- Python時(shí)間序列預(yù)測(cè)
- 前端HTML+CSS修煉之道(視頻同步+直播)
- 青少年學(xué)Python(第1冊(cè))
- C語(yǔ)言程序設(shè)計(jì)
- OpenCV 4計(jì)算機(jī)視覺(jué)項(xiàng)目實(shí)戰(zhàn)(原書第2版)
- 平面設(shè)計(jì)經(jīng)典案例教程:CorelDRAW X6
- ActionScript 3.0從入門到精通(視頻實(shí)戰(zhàn)版)
- 零基礎(chǔ)學(xué)Scratch 3.0編程
- Java并發(fā)實(shí)現(xiàn)原理:JDK源碼剖析
- Mastering Machine Learning with R