In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to install JDK under the CentOS system, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
JDK (Java Development Kit) is Sun Microsystems's product for Java developers. JDK has become the most widely used Java SDK since the launch of Java. JDK is the core of the entire Java, including the Java runtime environment, Java tools and Java basic class libraries. Let's learn how to install JDK on a CentOS system.
The CentOS system creates the installation directory
# mkdir / usr/java
Second, download
First go to the java.sun.com website to find the download address of * * jdk (JDK 6 Update 16):
Http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u16-linux-i586.bin?BundledLineItemUUID=OTVIBe.lL.YAAAEjJWElLW8e&OrderID=XAtIBe.lVDEAAAEjE2ElLW8e&ProductID=Dx1IBe.prBgAAAEirRcTvuC_&FileName=/jdk-6u16-linux-i586.bin
Execute under the current directory (/ usr/java):
Wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u16-linux-i586.bin?BundledLineItemUUID=OTVIBe.lL.YAAAEjJWElLW8e&OrderID=XAtIBe.lVDEAAAEjE2ElLW8e&ProductID=Dx1IBe.prBgAAAEirRcTvuC_&FileName=/jdk-6u16-linux-i586.bin
You can drink a glass of water and wait slowly.
Third, install in the CentOS system
When you execute the command after the download is complete, you can have permission to execute the .bin file.
Chmod 777 * .bin
Then enter:
. / * .bin
When installing jdk, the JDK installation license agreement will be displayed. Press the space to turn the page, and the * * program will ask you if you agree to the above agreement. Of course, type "yes" and start decompressing JDK to the current directory. The progress of decompression is displayed on the screen.
After the decompression is completed, a new directory called "jdk**" will be created under the / usr/java directory, and we have installed JDK on the CentOS system.
IV. Configuration
You need to configure environment variables after installation.
Vi / etc/profile
Add the following lines in * *:
Export JAVA_HOME=/usr/java/jdk1.6.0_16
Export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export PATH=$PATH:$JAVA_HOME/bin
Note that you need to change the name of jdk to the current version of JDK that you downloaded.
After setting up the JDK, enter the reboot command to restart.
5. Delete / uninstall
You can delete JDK with the rm-rf jdk1.5.0_11 command, keeping in mind that you need to empty the relevant contents of the configuration file.
The above content is how to install JDK under CentOS system. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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: 205
*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.