The detailed process of installing Java's JDK under the windows system [transfer]





 If you are a junior programmer who has just come into contact with the Java language and is very interested in it, you want to continue your research. Then this blog will tell you how to install the Java tool JDK, which is your first step in Java.

      First of all, you need to download Java's JDK (the full name of JDK is: Java Development Kit, which is the Java language software tool development kit). The latest JDK version is 1.8. The URL for downloading JDK on the oracle official website is: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Enter this URL and you can see the picture below

      The real one in the picture is the Java JDK provided by oracle company. There are two buttons on it. The license is not accepted by default. You can download the Java JDK after accepting it. Here you need to choose according to the type of your computer and the operating system. digits, download the corresponding JDK. The following one is a simple example of demos and Samples provided by oracle for JDK, which can be used for our study, and those who are interested can download and learn.

      

       Here I choose to download the 32-bit JDK for Windows of JDK. The picture below is the downloaded demos compressed file and the JDK installation package.

     

      Double-click the JDK installation package and click Next.

      

       Here I choose not to install the public JRE, because the public JRE is an independent JRE system, which is installed separately in other paths under the windows system. The public JRE registers the Java runtime environment with the browser and the system. By registering the runtime environment with the browser and the system, any application in the system can use the common JRE. But now there is almost no chance to execute applets on browser webpages, and the JRE in the JDK directory is fully capable, so generally choose not to install the public JRE. Here if you don't want to install in the default path, you can choose to change the directory.

      

      Click Next, and the following installation bar will appear.

 

      Click Close, and the JDK is installed successfully. Click Next Steps to jump to the JDK official website to introduce JDK.

       After installing the JDK, you need to configure the environment variables. Click My Computer to view the properties, and click Advanced System Settings.

 

     Find the JDK installation directory and find the bin directory:

     

     

      Enter the advanced system settings, find Path in the system variables, and add in the value: ;C:\Program Files\Java\jdk1.8.0_121\bin (this is mine).

     If necessary, you can create a new PATH in the user variable; add C:\Program Files\Java\jdk1.8.0_121\bin. (This step can be omitted).

     System variables and user variables: System variables are valid for the current system, that is, all users in the system are valid; user variables are only valid for the current user settings, and do not affect other users in the system. The effect of setting system variables and user variables for the current user is roughly the same, but the priority of system variables is higher than that of user variables (that is, both system variables and user variables contain the same path, and the commands contained in system variables are executed first).

     After setting, click OK all the way. Then enter cmd in the search box, enter javac in the dos command box, and the following picture effect appears:

     

     

      Then enter java, and the following picture effect will appear:

      

   

     Enter Java -version to view your own Java version.

     

     In this way, your JDK will be installed successfully.






 If you are a junior programmer who has just come into contact with the Java language and is very interested in it, you want to continue your research. Then this blog will tell you how to install the Java tool JDK, which is your first step in Java.

Guess you like

Origin blog.csdn.net/yulong_abc/article/details/81638926
Recommended