A. Download the JDK
With linux download, then why not make something always got a few K, can not use
Ever since, I have no patience with a direct window to download the (empty and then study how to use linux download, mind, then, do not read below)
Official website address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Select the desired version download, you need to hook indentured radio, or you will find that does not give download
After completion point people will politely tell you to say thank you
Here, I downloaded the tar.gz format should be compressed, this problem does not tangle
II. Tar.gz files uploaded to the server
Here is ftp upload, ftp, please do not set up the venue and ftp server build tutorial
III. Installation archive (sounds strange)
tar -zxvf jdk-8u181-linux-x64.tar.gz
Here jdk-8u181-linux-x64.tar.gz I archive in the download window, remember to change the file name under their own
And then it is loaded ... loading ... loading completed ....
IV. Environment Configuration
open a file
vim /etc/profile
Filling them (although not the same style file, but according to plug it wants)
config path #jdk
JAVA_HOME = / usr / local / the Java / jdk1.8.0_181 / ( Note that remember their own JDK into the path of )
the CLASSPATH = $ JAVA_HOME / lib /
the PATH = $ the PATH: $ JAVA_HOME / bin
Export the PATH JAVA_HOME the CLASSPATH
Update Configuration
source /etc/profile
V. Check whether the installation is complete
Command line input
java
As long as no command prompt can not find the works even become! Bar.