Installing Java Jdk May 2026
java --version You should see something like:
| Vendor | Best For | |--------|-----------| | | Enterprise, long-term support (LTS) | | OpenJDK | Open-source purists | | Amazon Corretto | AWS users, free LTS | | Eclipse Adoptium (Eclipse Temurin) | General development (my recommendation) | installing java jdk
Java remains one of the most popular programming languages in the world. Whether you're diving into Android development, Spring Boot, or just starting your coding journey, the first real step is installing the Java Development Kit (JDK) . java --version You should see something like: |
# Update your package list sudo apt update sudo apt install default-jdk Verify installation java --version ☕ javac HelloWorld
Happy coding! ☕
javac HelloWorld.java # creates HelloWorld.class java HelloWorld # runs the program Expected output:
For other distros (Fedora, Arch, etc.), use your package manager ( dnf , pacman , etc.) to install openjdk . Open a terminal (Command Prompt on Windows, Terminal on Mac/Linux) and run: