If you’re looking to install Java 8 on your Windows 11 PC, you’re probably working with an older application or development environment that specifically requires this version. While newer releases of Java (like Java 17 or Java 21) are great for modern apps, many enterprise tools and legacy systems still depend on Java 8.
In this guide, we’ll walk you through everything — from downloading the official installer to setting up environment variables — so you can get Java 8 running smoothly on your Windows 11 computer.
Why You Might Need Java 8 on Windows 11
Java 8 remains one of the most popular versions of Java because of its stability, backward compatibility, and wide adoption in enterprise systems. Many applications like Minecraft mod packs, Eclipse IDEs, and older server tools require it specifically.
Even though Oracle has released newer Long-Term Support (LTS) versions, Java 8 continues to be widely supported, especially for developers who need to maintain compatibility with older environments.
Step 1: Download Java 8
- Visit the official Oracle Java 8 download page.
- Scroll down to find Windows x64 Installer (
.exe) or Windows x64 Compressed Archive (.zip). - Click Download, then log in or create an Oracle account to access the file.
Tip: If you want to avoid the Oracle login requirement, you can use Adoptium Temurin 8 or Amazon Corretto 8, which are open-source builds of Java 8 compatible with Windows 11.
Step 2: Run the Installer
- Once the file is downloaded, double-click the installer to begin.
- Follow the setup wizard and click Next when prompted.
- Choose the installation directory or keep the default (
C:\Program Files\Java\jdk1.8.x_xx). - When the installation finishes, click Close.
At this point, Java 8 is installed, but you still need to add it to your system’s PATH for the command line to recognize it.
Step 3: Add Java 8 to PATH in Windows 11
- Press Windows + S, type environment variables, and open Edit the system environment variables.
- Click Environment Variables….
- Under “System variables,” find and select Path, then click Edit.
- Click New and paste your Java 8
binfolder path — for example:C:\Program Files\Java\jdk1.8.0_xx\bin - Click OK to save changes.
This tells Windows where to find the Java executable files whenever you use the Command Prompt.
Step 4: Verify Java 8 Installation
To make sure everything is working correctly:
- Open Command Prompt (press
Win + R, typecmd, hit Enter). - Type the following command:
java -version - If installed correctly, you’ll see something like:
java version "1.8.0_381" Java(TM) SE Runtime Environment (build 1.8.0_381-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.381-b09, mixed mode)
If you see this output, congratulations — Java 8 is fully installed and configured!
Step 5: Install Java 8 JRE (Optional)
If you only need to run Java applications and not develop them, you can install just the Java Runtime Environment (JRE) instead of the full JDK. The JRE package is also available on the same Oracle Java 8 archive page.
How to Set JAVA_HOME Variable on Windows 11
Some development tools like Eclipse, Android Studio, and Maven need a JAVA_HOME variable.
To set it:
- Go to Environment Variables again.
- Under System Variables, click New.
- For Variable name, enter:
JAVA_HOME - For Variable value, enter your Java directory path, e.g.:
C:\Program Files\Java\jdk1.8.0_xx - Click OK, then Apply.
You can verify it by typing this command:
echo %JAVA_HOME%
Wrapping Up
That’s it! You’ve successfully installed Java 8 on Windows 11. Whether you’re developing legacy apps, running older tools, or managing enterprise projects, this version of Java remains a reliable and stable choice.
If you’re interested in exploring newer versions, check out our guide on how to install Java 17 or 21 on Windows 11 — they come with performance improvements and modern language features while maintaining backward compatibility.