JDK Installation
-
What is JDKJDK(Java Development Kit) Java development tools, JDK contains a variety of libraries and tools for Java development and JRE (Java Runtime Environment) Java runtime environment.
(ps: in fact, that is, you want to develop Java you must install the JDK, like a development platform must have the JDK platform to develop Java) -
Download JDK
Official website download address /technetwork/java/javase/overview/
Here we chooseJava SE
Here's the JDK'sreleases(ps: for the choice of version, there is no need to be too entangled, anyway, for us white people to build an environment to write the program on the good, as for the future and then according to their own needs to change on the good)
After selecting Download under the appropriate version, we enter this page, in this page, select the appropriate version and click Download on the right.
Note that you have to agree to the agreement in order to download it.
Then select the appropriate operating system, x64 for 64-bit systems and x86 for 32-bit systems.
- Installing the JDK
Open the exe file we downloaded, next step
Here pay attention to two places, the top of the selection of development tools, the bottom of the installation location must be placed in their own can be found in the place, later useful
Then there is another installation, this is the installation of jre, jre installation location try not to be in the same location of jdk
- Configuring Environment Variables
Once the installation is complete, we need to configure the environment variables, find thethis computer->Right-click->Properties and select theAdvanced System Settings
Next, select the environment variable
First let's create a new JAVA_HOME variable, we select the system variable herenewly built
Variable NameJAVA_HOME, variable value browse directory, select the path just installed(ps: the JAVA_HOME variable is used to tell other programs where the jdk is)
After setting up the JAVA_HOME variable we find thePathvariables.double-click(ps: The Path variable is used to tell the system where to find the executable program that the system needs to use.)
Here's the point.
Two variables are needed here, one to point to the location of the bin file under jdk and the other to point to the location of the jrebin file under jdk
We first find the bin file under the jdk and open it, then copy the path down.
Copy the path after creating a new one in the path variable
Then we find the jdk under the jre open continue to open the bin file copy path
In the path variable, create a new one and copy the path into it.
- Test jdk
After completing these steps, let's verify that we've installed it correctly by going back to the desktop andwin+rimportationcmdEnter the command line window
Then we type "java"and a bunch of inexplicable things appeared
Then go ahead and type "javac", and a bunch of inexplicable things appeared
La-la-la-la, it's finally the last step ~~~~
Enter "java -version"((ps: note that there is a space in the middle)If the version number of your installation appears, then congratulations, you have successfully acquired a jdk!