How to Install Java 8 on Windows 11

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

  1. Visit the official Oracle Java 8 download page.
  2. Scroll down to find Windows x64 Installer (.exe) or Windows x64 Compressed Archive (.zip).
  3. 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

  1. Once the file is downloaded, double-click the installer to begin.
  2. Follow the setup wizard and click Next when prompted.
  3. Choose the installation directory or keep the default (C:\Program Files\Java\jdk1.8.x_xx).
  4. 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

  1. Press Windows + S, type environment variables, and open Edit the system environment variables.
  2. Click Environment Variables….
  3. Under “System variables,” find and select Path, then click Edit.
  4. Click New and paste your Java 8 bin folder path — for example: C:\Program Files\Java\jdk1.8.0_xx\bin
  5. 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:

  1. Open Command Prompt (press Win + R, type cmd, hit Enter).
  2. Type the following command: java -version
  3. 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:

  1. Go to Environment Variables again.
  2. Under System Variables, click New.
  3. For Variable name, enter: JAVA_HOME
  4. For Variable value, enter your Java directory path, e.g.: C:\Program Files\Java\jdk1.8.0_xx
  5. 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.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.