Installation of The JDK On Microsoft Windows Platforms
Installation of The JDK On Microsoft Windows Platforms
Windows Platforms
System Requirements for Installing the JDK on 64-Bit Windows
Platform
interim.update.patch
For example, if you are downloading the JDK installer for 64-bit systems for
update 11 Interim 0, Update 0, and Patch 0, then the file name jdk-
11.interim.update.patch_windows-x64_bin.exe becomes jdk-11_windows-x64_bin.exe.
Install JDK on Windows computers by performing the actions described in the following
topics:
Note:
Verify the successful completion of file download by comparing the file size on the download
page and your local drive. Alternatively, you can ensure that the downloaded file's checksum
matches the one provided on the Java SE Downloads page.
Running the JDK Installer
You must have administrator privilege to install the JDK on Microsoft Windows.
1. Start the JDK 11 installer by double-clicking the installer's icon or file name in the
download location.
2. Follow the instructions provided by the Installation wizard.
3. After the installation is complete, delete the downloaded file to recover the disk space.
The following table lists example installation scenarios and the commands required to
perform them. The notation jdk stands for the downloaded installer file base name, such
as jdk-11_windows-x64_bin.exe.
jdk.exe /s
If you do not set the PATH variable, then you must specify the full path to the executable
file every time that you run it. For example:
CopyC:\> "C:\Program Files\Java\jdk-11\bin\javac" MyClass.java
To set the PATH variable permanently, add the full path of the jdk-11\bin directory to
the PATH variable. Typically, the full path is:
CopyC:\Program Files\Java\jdk-11\bin
You should only have one bin directory for a JDK in the path at a time. Those
following the first instance are ignored.
If you are not sure where to add the JDK path, append it.
The new path takes effect in each new command window that you open after
setting the PATH variable.
CopyC:\WINDOWS\system32;C:\WINDOWS;"C:\Program
Files\Java\jdk-11\bin"
During JDK installation and uninstallation processes, the appropriate start menu items
are updated so that they are associated with the latest JDK version on the system
Note:
The Windows 7 and Windows 10 have a Start menu; however, the menu is not available in
Windows 8 and Windows 8.1. The JDK and Java information in Windows 8 and Windows 8.1 is
available in the following Start directory: %ALLUSERSPROFILE%\Microsoft\Windows\Start
Menu\Programs.
CopyMsiExec.exe/X{<UninstallString>}
CopyMsiExec.exe/X{E973EEA1-3C61-5347-8DF7-30494D4EC697}
To find the UninstallString, see Finding the JDK Registry Key and UninstallString Value .
Note:
Windows Installer dialog appears prompting you for confirmation. Click Yes to
uninstall JDK.
Under the Uninstall folder, you will find many registry entries within curly
brackets.
4. Enter version string as value to find corresponding registry key. For example, enter jdk-
11.
The registry key is highlighted on the right-hand side of the pane and values of
various uninstall strings are displayed on the left-hand pane.
Run the Program Install and Uninstall troubleshooter to repair the corrupted registry
keys that prevent programs from being completely uninstalled, or blocks new
installations and updates.
Manually edit the registry (Use this only if the Fix It utility does not work)
Incorrectly editing your registry may severely damage your system. You should back up
any valued data from your computer before making changes to the registry.
Use the File->Export functionality of the registry editor to save the registry key before
deleting. In case you deleted the wrong registry key, you can restore the registry from
your saved backup file, by using the File->Import functionality.
1. Determine the correct Registry Key. See Finding the JDK Registry Key and
UninstallString Value.
2. Highlight the key, Right click and select Delete.
3. Click Yes when prompted.