DEV Community

Kavitha
Kavitha

Posted on

How to Download and Install JDK (Java Development Kit)

The Java Development Kit (JDK) is required to develop, compile, and run Java programs. It includes tools like javac, java, and the JVM.

Step 1: Choose a JDK Distribution

You can download JDK from trusted providers:

  • Oracle JDK
  • OpenJDK
  • Adoptium (Eclipse Temurin)

Step 2: Download the JDK

  • Visit the official JDK provider website
  • Select your operating system (Windows / macOS / Linux)
  • Download the latest LTS version (e.g., Java 17 or 21)

Step 3: Install the JDK

  • Run the installer
  • Follow the setup instructions
  • Keep default settings for beginners

Step 4: Verify Installation
Open Command Prompt / Terminal and run:

javac -version
java -version

Enter fullscreen mode Exit fullscreen mode

If versions are displayed, JDK is installed successfully.

Top comments (0)