• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How to Install JDK 8 on Windows

By Abhishek Ghosh November 24, 2019 5:40 pm Updated on November 24, 2019

How to Install JDK 8 on Windows

Advertisement

In our one guide we have shown how to install JDK 11 on Windows. JDK 8 is often among the prerequisites of various developmental tools. In this guide, we will discuss the steps to correctly install JDK 8 and configure the PATH. Basics on JVM has been already discussed and we will not repeat. Often, many of the developmental tools support specific version of Oracle JDK (same goes to JDK from the other distributions). One Windows machine may need to have JDK 11, JDK 8 etc. Configuring/editing the PATH makes a particular version active. Unless you properly configure Java, trying to run the program will throw error 13. Oracle in recent time changed their licensing policy. In order to install JVM 8, you have to sign-up to download the installer. Although it does not cost anything, it is an additional work. JRE (Java Runtime) is required for running Java programs. JDK (Java Development Kit) includes JRE plus the development tools needed for writing as well as running Java programs. You can download JDK 8 from Oracle’s website.

Run the installer which will look like something closer to jdk1.8.0_231_windows-x64_bin.exe. JDK will be installed in C:\Program Files\Java\jdk1.8.0_231. Open File Explorer to navigate to C:\Program Files\Java to check the files. You’ll find javac.exe inside the bin directory. That file is our need.

 

How to configure the PATH of JVM installation

 

Open Control Panel and search with “Advanced system settings”. A window will open with the “Advanced” tab active. You’ll notice the “Environment Variables” button at its bottom. Click it. It will open a bigger window. There will be “User variables” and “System Variables”.

Advertisement

---

It will add the PATH to the “User variables”. That means, it remains under my user-named account. Some add the PATH to the “System Variables”. Click “New…” button and add the data like below :

Vim
1
2
3
4
5
6
=================================================
 
Variable name : PATH
Variable value : C:\Program Files\Java\jdk1.8.0_231\bin
 
=================================================

Click the OK buttons to save the changes. This entry alone enough to do 90% works related to Java. Again, add another entry under “User variables” (like above) :

Vim
1
2
3
4
5
6
=================================================
 
Variable name : JAVA_HOME
Variable value : C:\Program Files\Java\jdk1.8.0_231
 
=================================================

Click the OK buttons to save the changes. This entry alone enough to do 95% works related to Java. Again, add another entry under “User variables” (like above) :

Vim
1
2
3
4
5
6
=================================================
 
Variable name : CLASSPATH
Variable value : C:\Program Files\Java\jdk1.8.0_231\lib
 
=================================================

Click the OK buttons to save the changes. The above two entries are optional as some IDE and programs seek the entry of JAVA_HOME. You should remember these additions. If these entries create conflict in some program, remember to remove it.

How to Install JDK 8 on Windows

Now, open Command Prompt. Here, we will check whether our settings are making to respond to commands correctly. Run these three commands one by one :

Vim
1
2
3
4
5
#
path
javac -version
java -version
#

path command will return what we have given as the variable value, i.e. PATH=C:\Program Files\Java\jdk1.8.0_231\bin. If the others return meaningful output then your installation is fine.

 

Testing Compilation and Run

 

Create a file named Example.java in C:\Apps using Notepad. Be careful to save it as All files to avoid creating Example.java.txt. Copy-paste the below content :

Vim
1
2
3
4
5
public class Example {
   public static void main(String[] args) {
      System.out.println("This is an Example");
   }
}

I am not going into programming details. Java is like C++.
Run these commands from command prompt :

Vim
1
2
3
4
5
6
7
8
9
10
#
cd C:\Apps
dir
# compilation
javac Example.java
# check, there will be a class file now
dir
# run it
java Example
#

Delete the files to avoid confusion later with system files.

 

Switching Between JDK 11 and JDK 8

 

Not exactly easy on Windows. In case, you are changing from JDK 11 to JDK 8, then you have to change the PATH like shown above. Then restart the computer.

Tagged With Java 11 or more recent is required to run Please download and install a recent JDK , hwo to run jdk1 8 0_231 jdk catalina , jdk1 8 0_231 , jre for jdk1 8 0_231 , java 8 or more recent is required to run please download and install a recent jdk , java jdk1 8 0_231 , java 1 8 installation in windows 2019 , install jdk windows 2019 , java 8 installation in 2019 windows , steps to install jdk8 231

This Article Has Been Shared 658 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install JDK 8 on Windows

  • Windows 7 and Mac OS X: which one is better?

    Microsoft and Apple compete with the new versions of their operating systems those launched two months apart. Thecustomizewindows presents an honest comparison after using both the operating system for more than one year.

  • Keyless Door Unlocking Mobile Cloud Based Apps : Gaining More Interest

    Keyless Door Unlocking Mobile Cloud Based Apps like Lockitron, ShareKey are growing interest from both the developers and the users. Let us have a deeper look.

  • Commands For Mac : Learning the Command Line Interface

    Commands For Mac are one of the most useful and powerful point as for an Operating system.Not all users are used with UNIX CLI,so here is an easy guide for you.

  • ARM Architecture : The Processor Behind Smartphones and Tablets

    ARM Architecture is currently most widely used Processor architecture for embedded and mobile devices. But they are being in consideration for the servers too.

  • Install .deb Packages in Ubuntu or Other deb GNU/Linux

    Sometimes a .deb Package is Not Available on Repo & Available Elsewhere. Here is How to Install .deb Packages in Ubuntu or Other deb GNU/Linux.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How to Install JDK 8 on Windows," in The Customize Windows, November 24, 2019, January 29, 2023, https://thecustomizewindows.com/2019/11/how-to-install-jdk-8-on-windows/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT