Installing Java Jdk | Easy

javac --version If you see version numbers for both, congratulations — you're ready to write Java! Create a file called HelloWorld.java :

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:

public class HelloWorld public static void main(String[] args) System.out.println("Hello, Java!");

Happy coding! ☕

Have questions or run into a weird error? Drop a comment below or check out the Eclipse Adoptium community forums.

| 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) |