---
description: In this tutorial learn how to download and install Java JDK 8 in Windows and set environment variables.
title: How to Download &amp; Install Java JDK 8 in Windows
image: https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png
---

 

[Skip to content](#main) 

**⚡ Smart Summary**

Install Java JDK 8 in Windows by downloading the Development Kit from Oracle, running the installer, and configuring environment variables. This resource explains each download and installation step and how to set the PATH and CLASSPATH so that javac and java run from any command prompt.

* ☕ **JDK Purpose:** The Java Development Kit lets you compile and run Java programs, and multiple versions can coexist on one PC.
* ⬇️ **Download:** Get JDK 8 from Oracle, accept the license agreement, and choose the 32-bit or 64-bit version.
* 🛠️ **Install:** Run the downloaded installer and follow the on-screen steps, keeping the default installation path.
* 🧭 **Set PATH:** Add the JDK bin folder to the PATH variable so commands like javac and java work anywhere.
* 📚 **Set CLASSPATH:** Point CLASSPATH to the library files, then verify the setup with javac in Command Prompt.

[ Read More ](javascript:void%280%29;) 

![How to Download and Install Java JDK 8 in Windows](https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png)

This Java Development Kit (JDK) allows you to code and run Java programs. It is possible to install multiple JDK versions on the same PC, but it is recommended to install Java on Windows 10 with the latest version.

## How to Install Java for Windows 10 (64-bit)

Following are the steps to install Java in Windows 10, for the JDK 8 free download for 32-bit or JDK 8 download for Windows 64-bit, and installation.

**Step 1)** Go to this [link](https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html). Click on JDK Download for the Java JDK 8 download.

[](https://www.guru99.com/images/download-java-jdk-8.png)

**Step 2)** Next:

1. Accept the License Agreement.
2. Download Java 8 JDK for your version, 32-bit or 64-bit.

[](https://www.guru99.com/images/2/javainstall-2.png)

**Step 3)** When you click on the installation link, the popup will open. Click on “I reviewed and accept the Oracle Technology Network License Agreement for Oracle Java SE Development Kit” and you will be redirected to the login page. If you do not have an Oracle account, you can easily sign up by adding your basic details.

[](https://www.guru99.com/images/2/javainstall-3.png)

**NOTE:** You will be required to create an Oracle account to start the Java 8 download of the file.

**Step 4)** Once the Java JDK 8 download is complete, run the exe to install the JDK on Windows. Click Next.

[](https://www.guru99.com/images/2/javainstall-4.png)

**Step 5)** Select the PATH to install Java in Windows. You can leave it as default. Click Next.

[](https://www.guru99.com/images/2/javainstall-5.png)

**NOTE:** Follow the on-screen instructions in the succeeding steps to install Java 8 on Windows 10.

**Step 6)** Once you install [Java in Windows](https://www.guru99.com/introduction-to-java.html), click Close.

[](https://www.guru99.com/images/2/javainstall-6.png)

### RELATED ARTICLES

* [Exception Handling in Java ](https://www.guru99.com/java-exception-handling.html "Exception Handling in Java")
* [ArrayList in Java ](https://www.guru99.com/arraylist-in-java.html "ArrayList in Java")
* [How to Reverse a String in Java using Recursion ](https://www.guru99.com/java-program-reverse-string.html "How to Reverse a String in Java using Recursion")
* [Kotlin vs Java – Difference Between Them ](https://www.guru99.com/kotlin-vs-java-difference.html "Kotlin vs Java – Difference Between Them")

## How to set Environment Variables in Java: Path and Classpath

The PATH variable gives the location of executables like javac, java, etc. It is possible to run a program without specifying the PATH, but you will need to give the full path of the executable, like **C:\\Program Files\\Java\\jdk1.8.0\_271\\bin\\javac A.java** instead of a simple **javac A.java**.

The CLASSPATH variable gives the location of the library files.

Let us look into the steps to set the PATH and CLASSPATH.

**Step 1)** Right-click on My Computer and select Properties.

[](https://www.guru99.com/images/java/111417%5F1107%5FJava25.png)

**Step 2)** Click on Advanced system settings.

[](https://www.guru99.com/images/2/java-install-20.png)

**Step 3)** Click on Environment [Variables to set](https://www.guru99.com/java-variables.html) the Java runtime environment.

[](https://www.guru99.com/images/java/111417%5F1107%5FJava27.png)

**Step 4)** Click on the New button of User variables.

[](https://www.guru99.com/images/java/1912211%5Finstall%5Fjavaimage9.jpg)

**Step 5)** Type PATH in the Variable name.

[](https://www.guru99.com/images/java/111417%5F1107%5FJava29.png)

**Step 6)** Copy the path of the bin folder, which is installed in the JDK folder.

[](https://www.guru99.com/images/2/java-install-21.png)

**Step 7)** Paste the path of the bin folder in the Variable value. Click on the OK button.

[](https://www.guru99.com/images/2/java-install-22.png)

**Note:** In case you already have a PATH variable created on your PC, edit the PATH variable to:

PATH = <JDK installation directory>\bin;%PATH%;

Here, %PATH% appends the existing path variable to our new value.

**Step 8)** You can follow a similar process to set the CLASSPATH.

[](https://www.guru99.com/images/2/java-install-23.png)

**Note:** In case your Java installation does not work after installation, change the CLASSPATH to:

CLASSPATH = <JDK installation directory>\lib\tools.jar;

**Step 9)** Click on the OK button.

[](https://www.guru99.com/images/2/java-install-24.png)

**Step 10)** Go to the command prompt and type the javac command.

If you see a screen like the one below, Java is installed.

[](https://www.guru99.com/images/java/1912211%5Finstall%5Fjavaimage15.jpg)

Having trouble installing Java? Check our [**Online Java Compiler**](https://www.guru99.com/try-java-editor.html).

## FAQs

🤖 Can AI help set up Java and environment variables?

Yes. AI assistants can guide JDK installation, generate correct PATH and CLASSPATH values, and troubleshoot errors. However, you still apply the configuration changes on your own system and verify them yourself.

🧠 Do I need Java installed to run AI or big-data tools?

It depends. Several big-data and AI frameworks, such as Hadoop and Spark, run on the JVM and require Java. Many Python-based machine learning tools do not need a JDK installed.

📦 What is the difference between JDK, JRE, and JVM?

The JDK is the full development kit for writing and compiling Java. The JRE runs Java programs. The JVM is the engine inside the JRE that executes compiled Java bytecode.

💻 How do I check if Java is installed on Windows?

Open Command Prompt and type “java -version” or “javac -version”. If a version number appears, Java is installed and correctly added to your system PATH variable.

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter]() Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png","url":"https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png","width":"700","height":"250","caption":"How to Download &amp; Install Java JDK 8","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/install-java.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/java-tutorials","name":"Java Tutorials"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/install-java.html","name":"How to Download &amp; Install Java JDK 8 in Windows"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/install-java.html#webpage","url":"https://www.guru99.com/install-java.html","name":"How to Download &amp; Install Java JDK 8 in Windows","dateModified":"2026-06-30T16:17:51+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/install-java.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/james","name":"James Hartman","description":"I am James Hartman, a seasoned professional in Oracle Certified Java Professional tutorials, specializing in crafting comprehensive guides to help you excel in your Java certification journey.","url":"https://www.guru99.com/author/james","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","url":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","caption":"James Hartman","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Java Tutorials","headline":"How to Download &amp; Install Java JDK 8 in Windows","description":"In this tutorial learn how to download and install Java JDK 8 in Windows and set environment variables.","keywords":"java","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/james","name":"James Hartman"},"dateModified":"2026-06-30T16:17:51+05:30","image":{"@id":"https://www.guru99.com/images/how-to-download-and-install-java-jdk-8.png"},"copyrightYear":"2026","name":"How to Download &amp; Install Java JDK 8 in Windows","subjectOf":[{"@type":"HowTo","name":"How to install Java for Windows","description":"Following are the steps for JDK 8 free download for 32 bit or JDK 8 download 64 bit and installation","step":[{"@type":"HowToStep","name":"Step 1) Go to link.","text":"Click on JDK Download for Java JDK 8 download.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-1.png"},"url":"https://www.guru99.com/install-java.html#step1"},{"@type":"HowToStep","name":"Step 2) Next,","text":"Accept License AgreementDownload Java 8 JDK for your version 32 bit or JDK 8 download for windows 10 64 bit.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-2.png"},"url":"https://www.guru99.com/install-java.html#step2"},{"@type":"HowToStep","name":"Step 3) When you click on the Installation link the popup will be open.","text":"Click on I reviewed and accept the Oracle Technology Network License Agreement for Oracle Java SE and you will be redirected to the login page. If you don't have an oracle account you can easily sign up by adding basics details of yours.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-3.png"},"url":"https://www.guru99.com/install-java.html#step3"},{"@type":"HowToStep","name":"Step 4) Once the Java JDK 8 download is complete, run the exe for install JDK.","text":"Click Next","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-4.png"},"url":"https://www.guru99.com/install-java.html#step4"},{"@type":"HowToStep","name":"Step 5) Select the PATH to install Java in Windows\u2026 You can leave it Default.","text":"Click next.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-5.png"},"url":"https://www.guru99.com/install-java.html#step5"},{"@type":"HowToStep","name":"Step 6) Once you install Java in windows,","text":"click Close","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/2/javainstall-6.png"},"url":"https://www.guru99.com/install-java.html#step6"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Can AI help set up Java and environment variables?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI assistants can guide JDK installation, generate correct PATH and CLASSPATH values, and troubleshoot errors. However, you still apply the configuration changes on your own system and verify them yourself."}},{"@type":"Question","name":"Do I need Java installed to run AI or big-data tools?","acceptedAnswer":{"@type":"Answer","text":"It depends. Several big-data and AI frameworks, such as Hadoop and Spark, run on the JVM and require Java. Many Python-based machine learning tools do not need a JDK installed."}},{"@type":"Question","name":"What is the difference between JDK, JRE, and JVM?","acceptedAnswer":{"@type":"Answer","text":"The JDK is the full development kit for writing and compiling Java. The JRE runs Java programs. The JVM is the engine inside the JRE that executes compiled Java bytecode."}},{"@type":"Question","name":"How do I check if Java is installed on Windows?","acceptedAnswer":{"@type":"Answer","text":"Open Command Prompt and type \"java -version\" or \"javac -version\". If a version number appears, Java is installed and correctly added to your system PATH variable."}}]}],"@id":"https://www.guru99.com/install-java.html#schema-20765","isPartOf":{"@id":"https://www.guru99.com/install-java.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/install-java.html#webpage"}}]}
```
