English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
What is JDK
What is JDK? JDK is the abbreviation of Java Development Kit, which means the toolkit for Java program development. It can also be said that JDK is the SDK of Java.
The current JDK is roughly divided into three major versions:
Java SE: Java Platform, Standard Edition, mainly used for developing desktop applications
Java EE: Java Platform, Enterprise Edition, mainly used for developing web applications
Java ME: Java Platform, Micro Edition, mainly used for developing mobile applications
jdk1.8Installation environment variable configuration tutorial
First, download jdk (https://www.oldtoolbag.com/softs/325375.html)
Download and unzip the compressed package, follow the software prompts step by step to complete the installation.
Second, configure environment variables
1 Configure JAVA_HOME
Configure PATH, select the path under the JDK installation path
2 Configure CLASSPATH
Remember to add a “.” in front, paste the path directly to configure the path: ”.%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar”
3 Configure PATH
Add it directly after the path, the semicolon in front is used to separate from the original parameters: “;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin”
4 Test, see the version indicates that the installation is successful
Below is jdk1.8.0_05For example, version:
1Add a new variable name in user variables: JAVA_HOME Variable value: D:\Java\jdk1.8.0_05 (change according to the instance path)
2Add a new variable name in user variables: CLASSPATH Variable value: .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib; (change according to the instance path)
3Modify the variable value in the path of user variables: .;%JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;
Method to test whether the installation is successful:
1run--cmd (with administrative privileges) input: java -version
2Write a Hello.java file to the D disk
public class Hello { public static void main(String[] args) { System.out.println("Hello world! My Java!"); } }
Enter the current directory of D, type: javac Hello.java Enter, and then type: java Hello If you see: Hello orld! My Java! Then you have installed it successfully
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 encounter problems when installing the enterprise edition, I install JDK1.8Development Editionhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
If you want to develop, you need to download it. On the server, it is windows server 2008You can also use it, the configuration is as follows:
Note: Before installation, you need to 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, mainly used for developing desktop applications
Java EE: Java Platform, Enterprise Edition, mainly used for developing web applications
Java ME: Java Platform, Micro Edition, mainly used for developing mobile applications