Skip to content

TIP

This walkthrough uses Windows. Instructions for other operating systems will be added later.

Install

  1. Visit the Oracle website and download the JDK version that matches your operating system and toolchain.

    file

  2. Accept the license agreement and click the download button.

    file

  3. If you don’t have an Oracle account yet, register first. You must be signed in to download.

    file

  4. Once the download completes, double-click the installer to begin. Click Next.

    file

  5. Choose the installation directory for the Java Development Kit, then click Next.

    file

  6. When the installer finishes, you’ll see the following screen. Click Close.

    file

Verify the Installation

Open a command prompt and run java and javac. If no errors appear, the installation succeeded.

file

file

Hello World

  1. Create a Java directory in your workspace, then create a HelloWorld.java file with the following content:

    java
    public class HelloWorld {
      public static void main(String[] args) {
        System.out.println("Hello World");
      }
    }
  2. Compile and run the program.

    file

success

🎉 Congratulations! You’ve officially mastered the world’s #1 programming language. 🙈

Released under the MIT License.