How to install jdk and configuration environment variables in Windows7 system?

  
                

Recently, a user reinstalled the Windows 7 system. Since this user is compiling and decompiling Android, you need to install jdk on your computer. However, after reinstalling, it was found that jdk is gone, and it can only be reinstalled. Let's take a look at how to install jdk and configure environment variables.

1. There will be two installation prompts during the installation of jdk. The first time is to install jdk, the second time is to install jre. It is recommended that both be installed in different folders in the same java folder. (Can not be installed in the root folder java, and JDK jre installed in the same folder error), as shown below:

2, the installation JDK, randomly select a directory, simply Modify the directory before the default installation directory \\java; install jre & rarr; change → \\java before the directory and install jdk directory can be the same;

Note: If there is no installation directory requirements, you can set the default. No need to make any changes, just click the next step twice.


3, after installing jdk configure the environment variables: Computer & rarr; attribute & rarr; Advanced System Settings & rarr; Advanced & rarr; environment variables;

4, System variable → New JAVA_HOME variable.

The variable value is filled in the jdk installation directory (I am E:\\Java\\jdk1.7.0).

System Variables → Look for Path Variables → Edit, at the end of the variable value, enter %JAVA_HOME%\\bin;%JAVA_HOME%\\jre\\bin;

(note the end of the original Path variable value there; number, if not, the first input; number enter the code above)

5, the system variable & rarr; New CLASSPATH variable;

fill variable values;.% JAVA_HOME %\\lib;%JAVA_HOME%\\lib\\tools.jar (note one point at the top);

System variables are configured.

6, verify whether the configuration operation cmd, java -version input (and the spaces between the java -version);

If as shown in FIG display version information, The installation and configuration are successful. Methods

The above is jdk installation and configuration environment variable process in Windows7 system environment, if you are in the process of using computers need to use the jdk and set environment variables, you can use the above to Installation settings.

Copyright © Windows knowledge All Rights Reserved