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

  1. Select the required version, click enter, select the required version:

  1. Download the installation package based on your own machine environment

The installation

  1. Double-click the downloaded installation package and click “Next” all the time.

  2. 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

  1. Right-click computer on the desktop and choose Properties from the shortcut menu. In the Displayed System Properties dialog box, click Environment Variables

  1. 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).

  1. 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