Jdk installation and environment variable configuration, jdk environment variable configuration
JDK is a Java language software development kit. It is mainly used for java applications on mobile devices and embedded devices. JDK is the core of java Development. It contains the JAVA Runtime Environment, JAVA tools, and Basic JAVA class libraries.
Jdk: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download the package, click "Install", and continue "next", that is, "next" to set up environment variables.
Right-click my computer and choose Properties> advanced system Settings> advanced> environment variables.
After entering, click Create System variable:
Variable name: JAVA_HOME
Variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 92 (jdl installation path, which is the default installation path)
Create a new system variable:
Variable name: CLASSPATH
Variable value:.; % JAVA_HOME % \ lib \ tools. jar (note that there is a semicolon before; and Dot .)
Finally, find the Path in the system variable and click Edit:
At the end of the variable value, add:; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; (if you are afraid of errors, just copy the variable and add it in notepad, remember the plus points)
Now the environment variables are configured.
Verification Method: win + r Enter cmd and press ENTER
Input in dos:
Java (ps: Determine whether to install jdk)
Javac (ps: Determine whether the environment variables are correct)
Java-vsrsion (ps: view the current version)
Now the jdk and environment variables are OK.