What is jdk
What is jdk? jdk is the abbreviation of java development kit, which means a toolkit for java program development. It can also be said that jdk is sdk of java.
The current JDK is roughly divided into three major versions:
Java SE: Java Platform, Standard Edition, Java Platform Standard Edition, mainly used to develop desktop programs
Java EE: Java Platform, Enterprise Edition, Java Platform Enterprise Edition, mainly used to develop WEB programs
Java ME: Java Platform, Micro Edition, Java platform miniature version, mainly used to develop mobile programs
jdk1.8 installation environment variable configuration tutorial
1. Download jdk (//www.VeVB.COM/softs/325375.html)
Download the decompression compressed package and install it step by step according to the software prompts.
2. Configure environment variables
1 Configure JAVA_HOME
Configure PATH, select the path to JDK under the installation path
2 Configure CLASSPATH
Remember to include a "." in front, and paste the configuration path directly: ".;%JAVA_HOME%/lib;%JAVA_HOME%/lib/tools.jar"
3 Configure PATH
Just add it directly after the path, and the semicolon in front is used to separate it from the original parameters. ";%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin"
4 Test, seeing the version indicates that the installation is successful
Here is a sample version of jdk1.8.0_05:
1. Add a new variable name to the user variable: JAVA_HOME variable value: D:/Java/jdk1.8.0_05 (transformed according to the instance path)
2. Add a new variable name to the user variable: CLASSPATH variable value: .;%JAVA_HOME%/lib;%JAVA_HOME%/jre/lib; (transform according to the instance path)
3. Change the value of the variable in the path in the user variable: .;%JAVA_HOME%/bin;%JAVA_HOME%/lib;%JAVA_HOME%/jre/lib;
Test whether the installation is successful:
1. Run -->cmd (under administrator permissions) Enter: java -version
2. Write a Hello.java file and put it on D disk
public class Hello { public static void main(String[] args) { System.out.println( "Hello world! My Java!" ); } }Enter the current directory of D, write: javac Hello.java Enter, and then write: java Hello If: Hello orld! My Java! Then you have successfully installed it
Enterprise version SDK (With JDK) download address: http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html
After testing, it is easy to have problems installing the enterprise version. I am installing the development version of jdk1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
To develop, you need to download it. Windows Server 2008 can also be used on the server, and the configuration is as follows:
Note: Installation must first install java suitable for your operating system. The address is as follows: http://www.java.com/zh_CN/download/manual.jsp
The current JDK is roughly divided into three major versions:
Java SE: Java Platform, Standard Edition, Java Platform Standard Edition, mainly used to develop desktop programs
Java EE: Java Platform, Enterprise Edition, Java Platform Enterprise Edition, mainly used to develop WEB programs
Java ME: Java Platform, Micro Edition, Java platform miniature version, mainly used to develop mobile programs