1.JDK Download:
Links: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download the tar.gz compressed package that is marked with a red line.
Copy the downloaded compressed package to your own environment variable storage path (this can be arbitrarily selected, and remember the line)
I chose the/home/q/path, where the Q folder was created by myself.
2 Unzip the downloaded file to get the following folder:
3 Configuring the System environment variables:
In the terminal input sudo vim/etc/profile edit environment variable,
:
The Red Line part is the environment variable you need to configure,
Java_home= your own JDK storage path,
When you are done editing, restart your computer,
Input in Terminal: Java-version
, displaying the JDK version and information indicating that the JDK installation was successful. (Explain, because I have installed the JDK, I just said the installation process, did not reinstall, so the previous download of the jdk1.8,
And the last display version is 1.6, so don't be too tangled on this issue ~ ~ ~)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Configuring JDK under Linux