In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install Debian JDK7, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1) download JDK:
Download JDK7u55:JDKu55 from Oracle's official website
2) put the jdk zip file under the / usr/local folder
Mv absolute path to the folder where jdk compressed files are stored / jdk-7u55-linux-i586.tar.gz / usr/local
3) decompress the jdk file to / usr/local
Cd / usr/local
Tar-zxvf jdk-7u55-linux-i586.tar.gz
4) modify the name of the decompressed folder
Mv jdk1.7.0_55 jdk
5) authorize / usr/local/jdk folder
Cd / usr/local
Chown-R currentAccount:currentAccountGroup jdk/
6) configure environment variables (root permission is required)
Vim / etc/profile
Append at the end of the file
Export JAVA_HOME=/usr/local/jdk/
Export JRE_HOME=/usr/local/jdk/jre
Export LASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib
Export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
Execute source / etc/profile after configuration to make the configuration file effective
7) set the installed jdk to the default jdk (root permission is required)
Update-alternatives-install / usr/bin/java java / usr/local/jdk/bin/java 300
Update-alternatives-install / usr/bin/jar jar / usr/local/jdk/bin/jar 300
Update-alternatives-install / usr/bin/javah javah / usr/local/jdk/bin/javah 300
Update-alternatives-install / usr/bin/javap javap / usr/local/jdk/bin/javap 300
Update-alternatives-- config java selects the jdk path as / usr/local/jdk/bin/java as the default jdk
8) verify that jdk is installed successfully
Java-version
The following information indicates that the installation is successful
Java version "1.7.055"
Java (TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot (TM) Client VM (build 24.55-b03, mixed mode)
Thank you for reading this article carefully. I hope the article "how to install Debian JDK7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.