Install Java JDK on Windows

Use a Java JDK version that is compatible with your Windows and processor. All examples in this chapter were developed with Java JDK 8u201.

  1. Open Command Prompt and enter this command to check if you have Java JDK installed:
    java -version
  2. If one or more Java JDK is installed, confirm one is compatible with your macOS and processor.
  3. If you need to install Java JDK, go to Java SE 8 Archive Downloads.
  4. Locate and download the JDK install file compatible with your Windows and processor.
  5. After the installation completes, open Command Prompt and enter this command to check that the Java JDK version you picked installed successfully:
    java -version