JDK installation and configuration tutorial
- |
- Browsing:66984
- |
- Update:
136 133 Full text reading Step-by-Step reading Procedure
As an environment for Java Development, JDK must be installed on a computer, whether it is for Java Development students or Android Developers. Next we will teach you how to install JDK.
Tools/Raw Materials
One Computer
JDK installation package
I. JDK Installation
-
first, download the JDK installation package from the official website of Oracle and select the correct version based on the operating system of your computer. People who do not know can search Baidu quickly. Shows the download package.
-
double-click the JDK installation package with the left mouse button. The installation interface shown in the figure is displayed.
-
In fact, the above step is to load the configuration and prepare for JDK installation. The interface shown in later appears.
-
we select" I accept the terms in this License Agreement ", the" Next "button will be automatically activated, and then click this button, the custom installation interface is displayed.
-
You can select different installation paths and content as needed. Here we keep the default option. Click "Next" to display the "installing" interface.
-
when the progress bar reaches 100%, the" custom installation "page appears, at this time, you must install the language support plug-in. Click Next.
-
the browser association option is displayed, which can be selected as needed, after installation, you can change this option in the control panel.
-
Click "Next" to display the installation completion prompt. Of course, this step should be noted that 360 security guard may prompt the trojan firewall.Program", Otherwise the JDK installation may be incomplete.
Ii. JDK environment variable configuration
-
the first step is completed, but the JDK environment is installed. In this case, you must configure a series of environment variables to use the JDK environment for Java development. The configuration environment variables include java_home, path, and classpath.
-
right-click my computer ", choose "properties"> "advanced"> "environment variables"> "system variables"> "new ".
-
write" java_home "in the" variable name "input box, and write" C: \ Program Files \ Java \ jdk1.6.0 "(based on the installation path), and then click" OK ". The java_home configuration is complete.
-
next, configure" classpath. Select "system variables" to check whether the classpath project exists. If not, click "new". If yes, select the classpath option and click "edit, enter "classpath" in "variable name" and "C: \ Program Files \ Java \ jdk1.6.0 \ JRE \ Lib "(based on the installation path ).
-
now you can configure" path. Similarly, when "classpath" is set, set "path" in the "variable name" input box and "C: \ Program Files \ Java \ jdk1.6.0 \ bin "(based on the installation path ).
-
the JDK environment variable has been configured. You can open the Command Prompt window and enter the command" Java-version ", check the Java version to check whether the installation is successful. Click Start and then run ".
-
the displayed input page appears. Enter" cmd "and press" enter.
-
at this time, the" command prompt "window is displayed. Enter "Java-version" at this time. Note that there is a space between Java and-version and press "enter.
-
All JDK version information is displayed. On the other hand, JDK has been installed and configured. You can start Java development.
Notes