Your test environment gets set up by someone else, or via a wiki page of steps.
You're the someone else now. Environment setup is a core engineering skill — and a one-time cost.
This lesson sets up a complete Java automation environment on a Windows laptop: JDK 21, IntelliJ IDEA, and Git. Two paths for each install — the fast way (winget, Windows' built-in package manager) and the manual way (download an installer). Both end in the same place.
Fast way: open PowerShell (Start → type "powershell" → Enter) and run:
winget install EclipseAdoptium.Temurin.21.JDK
Manual way: go to adoptium.net → download the Windows x64 .msi for Temurin 21 (LTS) → run it. On the "Custom Setup" screen, enable "Set JAVA_HOME variable" and "Add to PATH" — this saves you manual environment-variable work.
Verify: close and reopen PowerShell (it only reads PATH at startup — the #1 gotcha), then:
java -version
openjdk version "21.0.7" 2025-04-15 LTS OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.7+6 ...
Any 21.x is right. If you get "'java' is not recognized…", see the troubleshooting box below.
winget install JetBrains.IntelliJIDEA.Community
Or manually: jetbrains.com/idea/download → scroll past Ultimate to Community Edition → run the installer. On the options screen, ticking "Add bin folder to PATH" and the .java file association is convenient. IntelliJ bundles Maven, so that's one less install.
winget install Git.Git
Or manually from git-scm.com/download/win. The installer asks ~10 questions; accepting every default is fine. Verify in a fresh PowerShell:
git --version
git version 2.50.0.windows.1
stage-1-starter.zip (also on the downloads page) and unzip it somewhere sensible, e.g. C:\dev\stage-1-starter. (Avoid OneDrive-synced folders like Desktop/Documents — sync locks cause weird build errors.)Open src/test/java/HelloTest.java, click the green ▶ next to the class name → Run 'HelloTest'.
HelloTest ✓ environmentWorks ✓ stringComparisonUsesEquals ✓ aTasteOfTestData Tests passed: 3 of 3 tests

images/intellij-run-panel.pngThree green checks = your entire toolchain works: JDK compiles, Maven resolved dependencies, JUnit ran assertions.
JAVA_HOME = C:\Program Files\Eclipse Adoptium\jdk-21..., then edit Path → New → %JAVA_HOME%\bin. Reopen PowerShell.java -version and git --version in PowerShell; screenshot both.HelloTest in IntelliJ; screenshot the green panel.HelloTest.java to make it fail, run it, and read the failure message top to bottom. Knowing what failure looks like matters as much as green. Change it back.