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