Installation of Java JDK 8 and configuration of environment variables (Linux and Windows)
The JDK (Java development Kit) contains the Java language compiler, which can be downloaded here:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
After opening the webpage, click "Accept License Agreement" first.
Select the corresponding version number according to the operating system.
java JDK 8 installation under Windows 8.1 and the configuration of environment variables
In Windows. Double-click Install is.
Win8.1 the configuration of the JDK7 environment variable:
click Computer (computer), select Properties , select Advanced Systems Settings, select the environment variable (environment variables).
Create a new 3 environment variable (path,classpath, Java_home). If there is no new.
Add the corresponding value to the 3 environment variables, as determined by the path where Java resides. According to the details of the change). Like what:
PATHD:\Program Files\java\jdk1.8.0\bin; D:\Program Files\java\jdk1.8.0\jre\bin
CLASSPATH D:\Program files\java\jdk1.8.0\lib; D:\Program Files\java\jdk1.8.0\lib\tools.jar
Java_homeD:\Program files\java\jdk1.8.0
Separate paths are separated by semicolons.
If you are joined correctly, log off or restart your computer, enter it in PowerShell or cmd:
Java-version
Javac-version
will display the corresponding version number information.
java JDK 8 installation under Linux and environment variable configuration
1 downloads, depending on the number of bits of the Linux system, here is the prefix for. tar.gz, for example, the direct installation of. RPM.
2 decompression.
3 Put the extracted folder below/usr/local. (This can be in a casual folder)
4 Locate the hidden file under the home folder. Profile, if not, find the file. Bash_profile (Note that the file name starts with a dot.) Because it is a hidden file).
5 Add an environment variable in the file. Profile or. Bash_profile. Add the following 4 lines at the very end of the file (subject to change.) Determined by the folder in which Java resides):
Export Java_home =/usr/local/jdk1.8.0
Export jre_home = ${java_home}/jre
Export classpath =.: < Span style= "margin:0px; padding:0px; Word-wrap:break-word ">${java_home} /lib:${jre_home}/lib
export path = ${JAVA_ HOME} /bin: $PATH
If you are joined correctly, log off or restart the computer later. In the bash shell, enter:
Java-version
Javac-version
will display the version number information.
Be sure to match your operating system's number of bits (128bit, 64bit or three bit), no one will be wrong!!!
!
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Java JDK 8 Installation and configuration of environment variables (Linux and Windows)