Set up the environment
Build the environment for Java11, Win10 64-bit!
Download the JDK
The JDK is a development environment for building applications, applets, and components distributed on the Java platform. That is, Java programs must be written using the JDK, which provides an environment for compiling and running Java programs.
Oracle Official website download
- Select the required version, click enter, select the required version:
-
Download the installation package based on your own machine environment
The installation
-
Double-click the downloaded installation package and click “Next” all the time.
-
View the installed Files (C: Program Files\Java\ JDK – selected version number)
- Bin: stores JDK tools, including executable programs such as Javac, Java, and Javadoc.
- Include: Saves local files.
- Lib: Store the Java class library file.
Environment Variable Configuration
- Right-click computer on the desktop and choose Properties from the shortcut menu. In the Displayed System Properties dialog box, click Environment Variables
- In the Environment Variables dialog box that is displayed, click Add under The System Variables list box. Add JAVA_HOME(change the installation path of the JDK to your machine).
- Edit the Path variable
After completing the above configuration, click the “OK” button to close the window
validation
Enter java-version in Git Bash or in a CMD window
Enter javac in Git Bash or in a CMD window