In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install jdk and set environment variables under the linux system". The explanation in the article is simple and clear and easy to learn and understand. please follow the editor's ideas to study and learn "how to install jdk and set environment variables under the linux system".
1. Download the jdk version file jdk-8u112-linux-x64.tar and put it in the root directory
two。 Extract to the root directory of root:
Tar zxvf jdk-8u112-linux-x64.tar
3. Set the environment variable in the / etc/profile file:
# Set Java Envirenment
Export JAVA_HOME=/jdk1.8.0_112
Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export PATH=$JAVA_HOME/bin:$PATH
4. Let the set variable take effect:
Source / etc/profile
5. Establish a jdk soft connection under / usr/local/ to facilitate future version upgrades:
Ln-s-f / jdk1.8.0_112/jre/bin/java
Ln-s-f / jdk1.8.0_112/bin/javac
6. Verify that the jdk variable setting is valid:
Java-version
Thank you for your reading, the above is the content of "how to install jdk and set environment variables under the linux system". After the study of this article, I believe you have a deeper understanding of how to install jdk and set environment variables under the linux system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.