In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "CentOS how to install jdk 1.6". In daily operation, I believe many people have doubts about how to install CentOS jdk 1.6. the editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about" how to install jdk 1.6in CentOS ". Next, please follow the editor to study!
Many programs on linux require jdk support, but jdk 1.7is too new for these programs. Install jdk 1.6today.
System: centos 5.5 (32-bit)
Required software package: jdk-6u32-linux-i586-rpm.bin
1. Download jdk
Go to the official website to download jdk 1.6
Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html
two。 Install jdk 1.6
The code is as follows:
Chmod + x jdk-6u32-linux-i586-rpm.bin
. / jdk-6u32-linux-i586-rpm.bin
3. Switch from OpenJDK to Sun JDK
The code is as follows:
Alternatives-install / usr/bin/java java/ usr/java/default/bin/java 1
Alternatives-- install / usr/bin/javac javac / usr/java/default/bin/javac 1
4. Select the desired version
The code is as follows:
Alternatives-config java
5. Set system environment variables
The code is as follows:
Vi / etc/profile
Export JAVA_HOME=/usr/java/default
Export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export PATH=$PATH:$JAVA_HOME/bin
Execute an order to make it effective:
The code is as follows:
Source / etc/profile
6. View the java version:
The code is as follows:
Java-version
At this point, the study on "how to install CentOS jdk 1.6" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.