Home > Back-end >  Linux install JDK8, JDK configuration
Linux install JDK8, JDK configuration

Time:10-13

1: upload JDK8 file
Rz win the upload files to Linux tools
Use rz command, such as the hint command not found, then enter yum command to download the install - y LRZSZ, re-enter the rz orders after the download is complete,

2: create a Java directory
Input the mkdir/usr/local/Java command create a directory

Input the tar - ZXVF JDK - 8 u45 - Linux - x64. Gz - C/usr/local/Java, will upload the JDK installation package decompression to Java directory


3: configure the environment variablesType vi/etc/profile command, enter the interface configuration file content

Press the I key, pop-up insert, the state of editing

In the last insert this part:
Export JAVA_HOME=/usr/local/Java/jdk1.8.0 _45
Export JRE_HOME=/usr/local/Java/jdk1.8.0 _45/jre
Export the CLASSPATH=. : $JAVA_HOME/lib/dt. The jar: $JAVA_HOME/lib/tools. The jar: $JRE_HOME/lib: $CLASSPATH
The export PATH=$JAVA_HOME/bin: $PATH

Press the esc key, then input: wq save out
The input source/etc/profile gives effect to the environment variable

4: verify whether the installation success
Enter Java - version



CodePudding user response:

CodePudding user response:

A look at is the copy of the old articles, small jdk8 version is now more than 200, 45 is the 2015-04-14 release

CodePudding user response:

Su -c "yum install Java -- 1.8.0 comes with its" not sweet?

CodePudding user response:

reference icoolno1 reply: 3/f
su -c "yum install Java -- 1.8.0 comes with its" not sweet?

It may not be configured a local yum source

CodePudding user response:

reference 4 floor u011048844 response:
Quote: reference icoolno1 reply: 3/f
su -c "yum install Java -- 1.8.0 comes with its" not sweet?

It may not be configured a local yum source


He this is not to use the yum, domestic mirror soon ah,

CodePudding user response:

refer to the second floor tianfang response:
is a look at the copy of the old articles, small jdk8 version is now more than 200, 45 is the 2015-04-14 release of
not copy well, companies use is this version
  • Related