what is jdk? jdk 1.8 installation and configuration method

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, 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 ( http://www.wmzhe.com/soft-30118.html )

download Unzip the compressed package and follow the software prompts to install it step by step.

2. Configure environment variables

1 Configure JAVA_HOME
<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun;">  
<ignore_js_op style ="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun;"> 
<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun;">  
Configure PATH, choose the JDK under the installation path

<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun;">  

2 When configuring CLASSPATH ,

remember to precede it with a "." , you can paste the configuration path directly: ".;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar"

<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68) ; font-family: Tahoma, "Microsoft Yahei", Simsun;">  

3 Configure the PATH

and add it directly after the path. The semicolon in front is used to separate the original parameters. ";%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin"

<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei" , Simsun;"> 



<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: Tahoma, "Microsoft Yahei", Simsun;">  

The following takes the jdk1.8.0_05 version as an example:

1 . Add a variable name to the user variable: JAVA_HOME Variable value: D:\Java\jdk1.8.0_05 (change according to the instance path)
2. Add a variable name to the user variable: CLASSPATH Variable value: .;%JAVA_HOME%\ lib;%JAVA_HOME%\jre\lib; (change according to the instance path)
3. Modify the variable value 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 rights) Input: java -version

<ignore_js_op style="word-wrap: break-word; color: rgb(68, 68, 68); font -family: Tahoma, "Microsoft Yahei", Simsun;">  

2. Write a Hello.java file and put it on the D drive

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, press Enter, and then write: java Hello If it appears: Hello orld! My Java! Then you have successfully installed.
Note: Before installation, you must first install the appropriate software for your operating system. java

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326077270&siteId=291194637