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.
1. First open the start menu in win7 system, then enter gpedit.msc in the start search box, press En
The Win7 system is a relatively stable system and one of the most used systems. Whe
Dell win7 system laptop suddenly shut down the cause and solution Solution one: 1, first use an an
1. Right click on the Computer option, select Manage, and bring up the Computer Management window, a
Cancel screen saver and wallpaper to make win7 run faster
What should I do if the Win7 system mouse does not move?
The eight magical aspects of the win7 group policy
How to use the notes that come with the Win7 system?
Windows7 uses IE browser to open web games only white screen solution
What should I do if the Win7 system prompts a print spooler error?
Win7 system screen protection how to set
What if the win7 volume icon is missing?
Win7 system Software Protection service can not start how to do
Ways to tell if Windows 7 system is
What should I do if the modified suffix name is invalid under Windows7?
23 tricks to make your XP system "fly"
How to set ROOT permission for ROOM Android Simulator ROOT permission setting method
Win7 system does not save the desktop settings after the restart tutorial
Linux system installation Vmware graphic tutorial
Win10 system uses the diagnostic mode to appear black screen failure reasons and solutions
Win8, privacy becomes a problem
How to import AutoCAD drawings into Photoshop
Win8/8.1 can't play full screen
The date style on the Win8 taskbar doesn't like how to change