HowToDoInJava

  • Python
  • Java
  • Spring Boot
  • Dark Mode
Home / Java / Java Basics / Installing Java on 64 bit Windows

Installing Java on 64 bit Windows

Learn to install Java on 64 bit Windows machines in this step-by-step guide.

1. Navigate to the Oracle Java Download Page

Navigate to the Java download page for the latest Java release.

Click on the link “JDK Download”.

JDK Download Link
JDK Download Link

2. Download the zip or exe Package

Here you have two choices:

2.1. Windows x64 Installer

An .exe file which installs the Java in your 64-bit windows machine and makes all necessary environment entries.

For a normal user, it is the best approach.

2.2. Windows x64 Compressed Archive

A .zip file distribution which you can copy to any location the computer. In this case, you need to update all the required environment variables (e.g. PATH, JAVA_HOME, etc.) yourself.

It is best suited for Java developers who want to keep multiple versions of Java running on their computers.

After clicking any of the download links, a popup will appear to accept Oracle Technology Network License Agreement for Oracle Java SE in order to download this software. Click on the checkbox and then proceed to download it.

Login to the oracle website if prompted.

3. Installation with .exe File

If we are installing the Java software with the exe file downloaded in the previous section, follow the given steps.

Step 1. Double click on exe file to initiate the installation process

Step-1
Step-1

Step 2. Select Java installation location

Until you have a reason to change the location, let it be the default location.

Step-2
Step-2

Step 3. Begin Java Installation

Click on Next button and it will install Java in your 64-bit computer. After the process complete in a few minutes, the installation wizard will end with a success message.

JDK Installation Finished
JDK Installation Finished

4. Installation with .zip File

This process is more suited for the Java developers community. Using this process, you can have multiple versions of Java on your computer. So based on the project requirements, you can choose a different version of any of the projects.

Step 1. Extract the zip archive in desired location

I have unzipped the jdk-14.0.2_windows-x64_bin.zip file in this location: E:\devsetup\jdk-14.

Unzip the file in desired location
Unzip the file in desired location

Step 2. Add/Update the environment properties

To find the environment properties window, look for it in the control panel. Or in Windows 10, directly search it in the search box in the taskbar.

Find environment variables
Find environment variables

Add the JAVA_HOME variable and specify the folder path as value, where you unzipped the downloaded Java package.

Add JAVA_HOME
Add JAVA_HOME

Now update the PATH variable. Add a new path in the list which is the bin folder inside the JDK folder.

The PATH Variable to Edit
The PATH Variable to Edit
Update PATH variable
Update PATH variable

After both variables are updated, we can validate the Java installation.

5. Verify Java Installation

To verify that Java has been installed on your computer, open a new command prompt. Type the below command which will print the version of Java installed on your computer.

> java -version

The command output.

java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

image

If you get any error in running this command, verify all the steps listed above.

Happy Learning !!

Was this post helpful?

Let us know if you liked the post. That’s the only way we can improve.
TwitterFacebookLinkedInRedditPocket

About Lokesh Gupta

A family guy with fun loving nature. Love computers, programming and solving everyday problems. Find me on Facebook and Twitter.

Comments are closed on this article!

Search Tutorials

Java Basics

  • Java Introduction
  • Java Installation
  • Java Hello World
  • Java JDK, JRE and JVM
  • Java Classes and Objects
  • Java ClassPath
  • Java Operators
  • Java Data Types
  • Java Primitive Types
  • Java Variables
  • Java Comments
  • Java main() Method
  • Java Command Line Args
  • Java Wrapper Classes
  • Java Types of Statements
  • Java Block Statement
  • Java Pass-by-Value
  • Java System Properties
  • Java Static Import
  • Java hashCode() and equals()
  • Java Immutable Class
  • Java 32-bit vs 64-bit
  • Java java.exe vs javaw.exe
  • Java Generate Bytecode
  • Java Naming Conventions
  • Java Little-Endian vs Big-Endian

Java Tutorial

  • Java Introduction
  • Java Keywords
  • Java Flow Control
  • Java OOP
  • Java Inner Class
  • Java String
  • Java Enum
  • Java Collections
  • Java ArrayList
  • Java HashMap
  • Java Array
  • Java Sort
  • Java Clone
  • Java Date Time
  • Java Concurrency
  • Java Generics
  • Java Serialization
  • Java Input Output
  • Java New I/O
  • Java Exceptions
  • Java Annotations
  • Java Reflection
  • Java Garbage collection
  • Java JDBC
  • Java Security
  • Java Regex
  • Java Servlets
  • Java XML
  • Java Puzzles
  • Java Examples
  • Java Libraries
  • Java Resources
  • Java 14
  • Java 12
  • Java 11
  • Java 10
  • Java 9
  • Java 8
  • Java 7

Meta Links

  • About Me
  • Contact Us
  • Privacy policy
  • Advertise
  • Guest and Sponsored Posts

Recommended Reading

  • 10 Life Lessons
  • Secure Hash Algorithms
  • How Web Servers work?
  • How Java I/O Works Internally?
  • Best Way to Learn Java
  • Java Best Practices Guide
  • Microservices Tutorial
  • REST API Tutorial
  • How to Start New Blog

Copyright © 2020 · HowToDoInjava.com · All Rights Reserved. | Sitemap

  • Sealed Classes and Interfaces