Swipe
SwipeSwipe
Swipe Apps

Paths

Motivation

Information

How Java Works · Lesson 9 of 28

Java Development Kit (JDK)

A free lesson from Swipe Coding · Java, level 1 · updated October 2026

By the Swipe team, founded by Colin · how we make lessons

🤖
Time to find out where javac and the JVM actually come from. 📦

You now know three building blocks: source code, the compiler (javac), and the JVM. But where do you actually get these tools? The answer: you install the "Java Development Kit", or JDK for short.

The JDK is a complete package for developers. It contains everything you need to write and build Java programs: the compiler (javac), the JVM for testing your program, plus additional tools and libraries (ready-made code building blocks that others have already written).

javac Main.java   // Part of the JDK: translates source code into bytecode
java Main          // Part of the JDK: executes the bytecode
Both command-line tools, javac and java, are included in the JDK.
Fill in the blank

Anyone who wants to write and compile Java programs installs the ____.

🤖
Think of it like a toolbox — everything you need is already inside. 🧰

You can think of the JDK like a complete workshop: it contains not just the machine that uses the finished workpiece (the JVM), but also all the tools needed to actually produce the workpiece in the first place (the compiler and more).

Quick check

What is included in the JDK (Java Development Kit)?

🤖
Curious what happens if you skip the JDK entirely? Let us see. 🤔

Without the JDK you might still be able to run finished Java programs (often less is needed for that), but you cannot compile your own source code. So if you want to write your own Java programs, you need the JDK on your computer.

True or false

You need the JDK to compile your own Java source code.

In the next lesson you will learn about the JDK's counterpart: the JRE — designed for anyone who only wants to run Java programs, without developing them.

Keep your streak going in Swipe Coding

Swipe through every level of Java on your iPhone — with XP, stars, streaks, a personal advisor and the full track beyond these free levels.

Get the Swipe apps →