Java Tutorial
Java Get Started
Installation
How to install JDK
Download the JDK from Oracle's website or use your package manager (e.g., apt, Homebrew). Follow the installer instructions to complete installation.
After installation, verify by running java -version in your terminal to ensure the correct version is active.
Setting up Java environment variables
Set JAVA_HOME to the JDK installation path and add the JDK bin directory to your PATH environment variable.
On Windows, set environment variables via System Settings; on Unix-based systems, export in your shell profile to make changes persistent.
IDE Setup
Recommended IDEs
- Eclipse
- IntelliJ IDEA
- NetBeans
Basic configuration tips
Install Java plugins or set the project SDK to your JDK path. Enable auto-build and configure code style formatting.
Each IDE offers unique features like code completion, debugging tools, and project templates—choose the one that aligns with your workflow.
Customize your IDE by installing linters and formatter plugins to maintain consistent code style across projects.
Now that your environment is set up, proceed to the next chapter to write and run your first Java program!