You need two things before beginning these tutorials:
1. Java installed on your computer
Download the JDK (Java Development Kit) from Adoptium (formerly AdoptOpenJDK). Version 17 or later is recommended. After installation, open a terminal and verify:
java -version
javac -version
If both commands print a version number, you're ready.
2. Ability to compile and run from the terminal
The basics tutorials use plain .java files with no build tool (no Maven, no Gradle). You compile with javac and run with java. An IDE like IntelliJ IDEA or VS Code makes this easier, but it's not required.
public class Hello {
public static void main(String[] args) {
System.out.println("Java is working.");
}
}
javac Hello.java
java Hello
If you see that output, your environment is set up correctly and you can proceed.