How Linux installs the Java environment

Source: Internet
Author: User
Linux installation Jdk7 steps: 1, first use the command to view the Linux system version number, Lsb_release-a 112, download the corresponding JDK version, the author uses the jdk-7u79-linux-x64.tar.gz;3, the JDK compressed package decompression; Now extract the files to the current folder/data/tar ZXVF jdk-7u79-linux-x64.tar.gz12124, move the extracted folder to the System directory folder/usr/lib/; Create a separate folder Jvm:mkdir The JVM moves the JDK folder to the JVM folder: MV/DATA/JDK1.7.0_79/USR/LIB/JVM using LS view: ls123456123456 5, modify the system environment variable; Edit the system variable file Profile VI/ ETC/PROFILE11 Copy the following content to the end of the profile file: Java_home=/usr/lib, jvm/jdk1.7.0_79 path= $JAVA _home/bin: $PATHCLASSPATH = .: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar export java_home export PATH export CLASSPATH Edit completed Wq save exit, at this time the file does not take effect, Need to use the source command to immediately take effect SOURCE/ETC/PROFILE11 6, verify the installation is successful; java-verison11

How Linux installs the Java environment

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.