No Admin Needed
Standard Java installers require admin rights. A ZIP file needs none.
Self-Contained
Everything is inside one folder. Unzip, done. Nothing touches the system.
USB Friendly
Drop it on a USB drive and carry your Java environment anywhere.
Clean Removal
To uninstall, just delete the folder. No registry, no traces.
Download the ZIP below
Click the download button to get the official Java 21 (JDK) ZIP package for Windows.
Extract the ZIP
Right-click the downloaded file → Extract All… → choose any folder you have access to (e.g. Documents or a USB drive).
Set JAVA_HOME (optional but recommended)
Open Command Prompt and temporarily set: set JAVA_HOME=C:\path\to\jdk-21
Then add to PATH: set PATH=%JAVA_HOME%\bin;%PATH%
Verify it works
Run java -version in Command Prompt. You should see java version "21.x.x".
Run your program
Compile with javac MyProgram.java and run with java MyProgram. All without installing anything!
✓ Official Oracle build · No malware · No installer · No admin rights needed
Is this legal to use at school?
Does this work on Mac or Linux too?
JAVA_HOME, and you're ready.What's the difference between JDK and JRE?
Why Java 21 specifically?
Will the settings reset after I log off?
set command in CMD only applies to the current session. You'll need to re-run the two set commands each time you open a new terminal. To save yourself time, create a small setjava.bat file that runs both commands automatically.