In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "Ubuntu12.05LTS how to install sun jdk7", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Ubuntu12.05LTS how to install sun jdk7" bar!
Ubuntu 12.05LTS install sun jdk7
1. Download SUN JDK
Download address: http://vdisk.weibo.com/s/jhKspZIIMR#_loginLayer_1490749350870
I downloaded jdk-7u7-linux-i586.tar.gz to the home/ username directory.
two。 Decompression
Sudo tar-zvxf jdk-7u7-linux-i586.tar.gz
Get jdk1.7.0_07 after decompression
3. Copy the extracted files directory to / usr/lib/jvm
Sudo cp-r ~ / jdk1.7.0-07 / / usr/lib/jvm/jdk1.7.0_07
4. Configure java environment variables
Open the .profile file and add it at the end (.profile is a hidden file under the / home/ username directory that can be viewed by Ctrl+H)
Export JAVA_HOME=/home/gary/jdk1.7.0_07
Export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
Export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
After saving, the terminal makes it effective.
Source .profile
4. Test java
Java-version
Untu:~$ java-version
Java version "1.7.080"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot (TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Thank you for reading, the above is the content of "how to install sun jdk7 in Ubuntu12.05LTS". After the study of this article, I believe you have a deeper understanding of how to install sun jdk7 in Ubuntu12.05LTS, and the specific use needs to be verified in practice. 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.