One: JDK installation
1.JDK Download Address:
jdk1.7 64-digit official download address http://www.oracle.com/technetwork/java/javase/downloads/index.html
To download the latest version, you can choose to download it now:
Download history version: From the homepage of the place into
After entering:
After entering: I choose to be 7 version
Note: Before downloading, remember to tick accept License agreement
If you are prompted not to log in, register to login.
2. Upload the downloaded files to the Linux server
Using remote links with Linux tools, upload a good jdk to the server (such as tool FileZilla (Linux remote File Transfer server))
Figure I: Remote Tools linked to the server, if the link failed, login users without errors, you can change the port to 22 links
Figure II: Uploading JDK
To this: The file has been uploaded to the server successfully
Through Xshell (Linux remote control software) can be viewed to upload the successful file
3. Extract Files
After the tar xvf jdk-7u80-linux-x64.tar.gz decompression is complete, modify the configuration file
Vim/etc/profile
At the end of the file, add:
Note: My jdk1.7.0_80 is extracted after the local below, so the path should be filled in the following configuration:
Export java_home=/usr/local/jdk1.7.0_80
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Press ESC and then: Wq Save exit
Restarting the server
Test: Java-version