3/31/2020 Download And Install Java Jdk
Java Platform, Standard Edition Installation Guide. If you are downloading the JRE installer for 64-bit systems for update 10 Interim 0, Update 2, and Patch 1,.
![]()
Java is a computer programming language that is concurrent, class-based and object-oriented. It was originally developed by James Gosling at Sun Microsystems. Java applications are compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture.
Java is currently owned by the Oracle Corporation which acquired Sun Microsystems in 2010. Following tutorial will show you how to setup and configure Java 1.9 on Windows so you can develop and run Java code.
JDK 9 has reached its end of life (and end of public support) as of March 2018 and users should switch to JDK 10. This is linked to the new release cycle that Java will be following which consists out of a “feature” release every 6 months and a long-term support (LTS) release every 3 years. The next planned LTS is JDK 11.
Check following posts if you are looking to download and install JDK 1.5, JDK 1.6, JDK 1.7, JDK 1.8 or JDK 1.10.
Java can be obtained from the Oracle Java download page. There are a number of different Java packages available, for this tutorial we will be installing Java Standard Edition (SE) on Windows.
In order to be able to compile Java code, we need the Java Development Kit (JDK) package that comes with a Java compiler. The JDK package also comes with a Java runtime environment (JRE) that is needed to run compiled Java code.
As we are installing a Java version that reached end of life, you need to scroll all the way down to the bottom of the Oracle Java download page and click on the Download button in the Java Archive section. Then look for the Java SE 9 link and after clicking on it, select the correct operating system under Java SE Development Kit 9.0.4.
Here is the direct link to download the jdk 9 installer for Windows.
Accept the License Agreement and pick the correct download for your operating system. In this example, we will use the Windows 64 bit version.
Sign in using your Oracle account (or create a new one) and the download should start. Once the download is complete, locate the jdk-9.0.4_windows-x64_bin.exe file and double-click to run the installer.
Click Next and on the following screen optionally change the installation location by clicking on the Change... button. In this example the default install location of 'C:Program FilesJavajdk-9.0.4' was kept. From now on we will refer to this directory as: [java_install_dir].
We will not install the public JRE as the JDK Development tools include a private JRE that can run developed code. Select the Public JRE dropdown and click on This feature will not be available. as shown below.
Click Next and then Close to finish installing Java.
In order for Java applications to be able to run we need to setup a 'JAVA_HOME' environment variable that will point to the Java installation directory. In addition, if we want to run Java commands from a command prompt we need to setup the 'PATH' environment variable to contain the Java bin directory.
When using Windows the above parameters can be configured on the Environment Variables panel. Click on the Windows Start button and enter “env” without quotes as shown below.
![]()
Environment variables can be set at account level or at system level. For this example click on Edit environment variables for your account and following panel should appear.
Click on the New button and enter “JAVA_HOME” as variable name and the [java_install_dir] as variable value. In this tutorial the installation directory is 'C:Program FilesJavajdk-9.0.4'. Click OK to to save.
Click on the New button and enter “PATH” as variable name and “%JAVA_HOME%bin” as variable value. Click OK to save.
Note that in case a 'PATH' variable is already present you can add “;%JAVA_HOME%bin” at the end of the variable value.
The result should be as shown below. Click OK to close the environment variables panel.
In order to test the above configuration, open a command prompt by clicking on the Windows Start button and typing “cmd” followed by pressing ENTER. A new command prompt should open in which the following command can be entered to verify the installed Java version:
The result should be as shown below.
This concludes the setting up and configuring JDK 1.9 on Windows.
If you found this post helpful or have any questions or remarks, please leave a comment.
This topic includes the following sections:
System Requirements for Installing the JDK on 64-Bit Windows Platform
For supported processors and browsers, see Oracle JDK Certified Systems Configurations.
JDK Installation Instruction Notation for Windows
For any text in this document that contains the following notation, you must substitute the appropriate update version number:
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 .
JDK Installation Instructions for Windows
You run a self-installing executable file to unpack and install the JDK on Windows computers.
Install JDK on Windows computers by performing the actions described in the following topics:
Downloading the JDK Installer
Access Java SE Downloads page and click Accept License Agreement. Under the Download menu, click the Download link that corresponds to the
.exe for your version of Windows.
Download the file
jdk-11.interim.update.patch_windows-x64_bin.exe .
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.
Installing the JDK Silently
Instead of double-clicking or opening the JDK installer, you can perform a silent, non interactive, JDK installation by using command-line arguments.
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 .
Setting the PATH Environment Variable
It is useful to set the
PATH variable permanently for JDK 11 so that it is persistent after rebooting.
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:
To set the
PATH variable permanently, add the full path of the jdk-11bin directory to the PATH variable. Typically, the full path is:
Beginning to Use the JDK
Use the Java Development Kit in the Windows Start menu to access information related to Reference Documentation.
During JDK install, Java menu items are added to the Windows Start menu to provide easy access to Reference Documentation, which is online documentation web page.
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%MicrosoftWindowsStart MenuPrograms .
Uninstalling the JDK on Windows
To uninstall JDK 11, use the Add/Remove Programs utility in the Microsoft Windows Control Panel.
JDK Installation Troubleshooting
The following sections provide tips for resolving issues, if any, while installing JDK.
System Error During Decompression
If you see the error message:
system error during decompression , then there might not be enough space on the disk that contains the TEMP directory.
Program Cannot Be Run in DOS Mode
If you see the error message:
This program cannot be run in DOS mode , then do the following:
Source Files in Notepad
In Microsoft Windows, when you create a new file in Microsoft Notepad and then save it for the first time, Notepad usually adds the
.txt extension to the file name. Therefore, a file that you name Test.java is actually saved as Test.java.txt . Note that you cannot see the .txt extension unless you turn on the viewing of file extensions (in Microsoft Windows Explorer, deselect Hide file extensions for known file types under Folder Options). To prevent the .txt extension, enclose the file name in quotation marks, such as 'Test.java' when entering information in the Save As dialog box.
Characters That Are Not Part of the System Code Page
It is possible to name directories using characters that are not part of the system locale's code page. If such a directory is part of the installation path, then generic error 1722 occurs, and installation is not completed. Error 1722 is a Windows installer error code. It indicates that the installation process has failed. The exact reason for this error is not known at this time.
To prevent this problem, ensure that the user and system locales are identical, and that the installation path contains only characters that are part of the system locale's code page. User and system locales can be set in the Regional Options or Regional Settings control panel.
The associated bug number is 4895647.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |