You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Before writing Java code, you need a Java Development Kit (JDK) and a way to edit, compile, and run programs. This lesson walks through installation, choosing an IDE, and running your first Java application.
You need the JDK (not just the JRE). The JDK includes the compiler (javac), the runtime (java), and developer tools.
| Distribution | Vendor | Notes |
|---|---|---|
| Oracle JDK | Oracle | Free for development; commercial licence for production |
| Eclipse Temurin | Adoptium | Free, open-source, community-driven |
| Amazon Corretto | Amazon | Free, long-term support, production ready |
| Azul Zulu | Azul | Free Community Edition available |
| GraalVM | Oracle | JDK + ahead-of-time compilation and polyglot support |
Tip: For beginners, Eclipse Temurin (Adoptium) is the easiest choice — it is free, open-source, and has simple installers for every platform.
macOS (Homebrew):
brew install --cask temurin
Windows (winget):
winget install EclipseAdoptium.Temurin.21.JDK
Linux (apt — Debian/Ubuntu):
sudo apt update
sudo apt install temurin-21-jdk
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.