Java Development Kit (JDK)

The JDK is a development environment for building applications, and components using the Java programming language. Make sure you download the JDK, not the JRE.

See Java SE Development Kit 12 Downloads.

On Windows download jdk-12.0.1_windows-x64_bin.exe (158.48 MB).

The JDK is typically installed under C:\Program Files\Java\jdk-12.0.1.

A "Hello world" tutorial for Windows is useful to get started.


/**
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}

To compile, use the following command:

    "C:\Program Files\Java\jdk-12.0.1\bin\javac" HelloWorldApp.java

To run it, use the following command:

    "C:\Program Files\Java\jdk-12.0.1\bin\java" -cp . HelloWorldApp

There are lots of Java tutorials.