Install and deploy Java in Linux

Source: Internet
Author: User

Install and deploy Java in Linux
Install 6 small parts in Java (suitable for beginners) 1. download the software package

# wget http://download.Oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz?AuthParam=1441937568_6752e90a2aa70be3cf8baa0b8905125c

I wonder why the downloaded wget name is messy.

# mv jdk-7u79-linux-x64.tar.gz?AuthParam=1441937568_6752e90a2aa70be3cf8baa0b8905125c /root/jdk-7u79-linux-x64.tar.gz
# cd

2. decompress the jdk File

# tar zxf jdk-7u79-linux-x64.gz -C /data/

3. Create a soft connection

# ln -s /data/jdk1.7.0_79 /usr/local/java

4. Edit the environment variable (input: $ to locate the last line of the file, and then execute o to edit at the end of the file)

# vim /etc/profile
1 #------------------------------JAVA------------------------------#    2 export JAVA_HOME=/usr/local/java    3 export PATH=$JAVA_HOME/bin:$PATH    4 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

5. Make java environment variables take effect

# source /etc/profile

6. Verify that java is successfully installed (this command returns the java version information)

# java -version
1 java version "1.7.0_79" 2 Java(TM) SE Runtime Environment (build 1.7.0_79-b15)    3 Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables

Build a JDK environment using CentOS

Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables

Install Oracle JDK 14.04 on Ubuntu 1.8 LTS

CentOS6.3 install JDK and environment Configuration

Install JDK 8 on Ubuntu 14.04

Install JDK graph analysis in Ubuntu

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.