Assignement 1: 1
Assignement 1: 1
System Requirements for Installing the JDK and the JRE on 64-Bit Windows Platform
JDK and JRE Installation Instruction Notation for Windows
JDK Installation Instructions for Windows
JRE Installation Instructions for Windows
Windows Registry Settings
Beginning to Use the JDK
Uninstalling the JDK on Windows
Uninstalling the JRE on Windows
JDK Installation Troubleshooting
Before installing the JDK or the JRE on your 64-bit Windows platform, you must verify that it meets the
following minimum processor, disk space, and memory requirements.
Processor Requirements
Both the JDK and JRE require at minimum a Pentium 2 266 MHz processor.
For JDK 10, you are given the option of installing the following features:
Development Tools
Source Code
Public Java Runtime Environment
When you install 64-bit JDK, then 64-bit public JRE also gets installed. The following table provides the
disk requirements for the installed features:
JDK
Development Tools: 64-bit platform
Source Code
JRE
Public Java Runtime Environment
Java Update
Memory Requirements
On Windows 64-bit operating systems, the Java runtime requires a minimum of 128 MB of memory.
Note:
The minimum physical RAM is required to run graphically based applications. More RAM is
recommended for applets running within a browser using the Java Plug-in. Running with less memory may
cause disk swapping, which has a severe effect on performance. Very large programs may require more
RAM for adequate performance.
Note:
For supported processors and browsers, see Oracle JDK Certified Systems Configurations.
interim.update.patch
For example:
If you are downloading the JDK installer for 64-bit systems for update 10 Interim 0, Update 2, and
Patch 1, then the file name jdk-10.interim.update.patch_windows-
x64_bin.exe becomes jdk-10.0.2.1_windows-x64_bin.exe.
If you are downloading the JRE installer for 64-bit systems for update 10 Interim 0, Update 2, and
Patch 1, then the file name jre-10.interim.update.patch_windows-
x64_bin.exe becomes jre-10.0.2.1_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.
The JDK includes the JavaFX SDK, a private JRE, and the Java Mission Control tools suite. The
installer integrates the JavaFX SDK into the JDK installation directory.
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-10_windows-
x64_bin.exe.
Installation Scenario
Install JDK and public JRE in silent mode.
Install development tools and source code in silent mode but not the public JRE.
Install development tools, source code, and the public JRE in silent mode.
Note:
The PATH variable is set automatically for the JRE. This topic only applies to the JDK.
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:
Note:
The PATH environment variable is a series of directories separated by semicolons (;) and is not
case-sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left
to right.
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.
C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-10\bin"
The 64-bit Windows operating systems come with a 64-bit Internet Explorer (IE) browser as the standard
(default) for viewing web pages.
Install JRE on Windows computers by performing the actions described in the following topics:
If you are running behind a proxy server, then you must have your proxy settings correctly configured. If
they are not configured, or are incorrectly configured, then the installer will terminate with the following
message:
The installer cannot proceed with the current Internet Connection settings.
https://www.java.com/en/download/help/
If you do not know what the correct settings should be, check with your internet provider or system
administrator.
Windows Offline: jre-10.interim.update.patch_windows-
x64_bin.exe
Windows Tar: jre-10.interim.update.patch_windows-
x64_bin.tar.gz
Note:
The Windows Offline installer and Windows installer contains everything that is required to
install the JRE.
The Microsoft Windows Installer (MSI) Enterprise JRE Installer is also available, which enables
you to install the JRE across your enterprise. It requires a commercial license for use in
production.
3. Click Accept License Agreement, and then, under the Download menu, click the link that
corresponds to the installer for your version of Windows.
4. Note the file size specified on the download page and, after the download has completed, verify
that you have downloaded the complete file.
The installer notifies you if Java content is disabled in web browsers and provides instructions for
enabling it. If you previously chose to hide some of the security prompts for applets and Java Web
Start applications, then the installer provides an option for restoring the prompts.
3. After the installation is complete, delete the downloaded file to recover disk space.
Note:
The private JRE installed with the JDK is not registered. To register the JRE, you must set
the PATH environment variable to point to JAVA_HOME\bin, where JAVA_HOME is the location
where you installed the private JRE . See Setting the PATH Environment Variable.
By default, the Java Access Bridge is disabled. To enable it, see Enabling and Testing Java Access
Bridge in the Java Platform, Standard Edition Java Accessibility Guide.
To access essential Java information and functions in Microsoft Windows 7 and Windows 10
machines, after installation, click the Start menu and then select Java. The Java directory
provides access to Help, Check for Updates, and Configure Java.
The Microsoft Windows 8 and Windows 8.1 do not have a Start menu. However, the Java
information is available in the following Start directory: %ALLUSERSPROFILE%\Microsoft\
Windows\Start Menu\Programs.
HKEY_LOCAL_MACHINE\Software\JavaSoft\JRE
This key contains the string CurrentVersion, with a value that is the highest installed version
on the system.
HKEY_LOCAL_MACHINE\Software\JavaSoft\JRE\<version>
This key contains the following string values:
JavaHome: the full path name of the directory in which the JRE is installed
RuntimeLib: the full path name of the Java runtime DLL
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Web Start\
If there are two versions of JDK or JRE installed on a system, one with the new version-string format
introduced in JDK 10, and the other with the older version format, then there will be two
different CurrentVersion registry key values. For example, if JDK 1.8.0 and JDK 10 are installed, then
the following registry keys are created:
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\10"
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK"
"@CurrentVersion" = 10
"@CurrentVersion" = 1.8
For the same example, if the JRE is installed, then the registry layout is:
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\10"
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE"
"@CurrentVersion" = 10
"@CurrentVersion" = 1.8
Note:
Java Mission Control is a commercial feature available to users with a Java SE Advanced license.
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.
About Java: Opens the Java Control Panel with focus on the General tab. The tab displays the
latest JRE version installed on the system.
Check for Updates: Opens the Java Control Panel with focus on the Update tab
Configure Java: Opens the Java Control Panel with focus on the General tab
Get Help: Opens the Java Help Center
Visit Java.com: Opens the Java Download page
During JRE installation and uninstallation processes, the appropriate start menu items are updated so that
they are associated with the latest JRE version on the system.
Note:
The Windows 7 and Windows 10 have Start menu, however the menu is not available in
Windows 8 and Windows 8.1. The JRE and Java information in Windows 8 and Windows 8.1 is
available in the following Start directory: %ALLUSERSPROFILE%\Microsoft\Windows\Start
Menu\Programs.
If you have a previous version of Java Web Start, do not uninstall it. Uninstalling it will cause the
download cache to be cleared, and all previously installed Java Web Start application data will have to be
downloaded again. The new version will write over previous installations and automatically update
browsers to use the new version. The configuration files and the program files folder used by Java Web
Start have changed, but all your settings will remain intact after the upgrade because Java Web Start will
translate your settings to the new form.
Uninstallation
The only way to uninstall Java Web Start is to uninstall the JDK or JRE. Uninstalling the JDK or JRE will
not, however, remove the cache for previous versions of Java Web Start. Previous releases have separate
uninstallation instructions for Java Web Start.
Download and cache a Java Web Start application with the JDK or JRE.
Remove the JDK or JRE using Add or Remove Programs from the Windows Control Panel.
Remove the Java Web Start application using Add or Remove Programs.
When you remove the application, you see an Uninstaller Error dialog box saying:
An error occurred while trying to remove Java-Application:nameApp. It may have already been
uninstalled. Would you like to remove Java-Application: name App from the Add or Remove
program list?
If you say Yes to this, then you will see another Uninstaller Error dialog box saying:
You do not have sufficient access to remove Java-Application:nameApp from the Add or Remove
Program list. Please contact your system administrator.
The message is displayed when you have removed the Java Web Start application while uninstallating the
JDK or JRE, but this is not reflected in the Add or Remove Programs. Refresh the Add or Remove
Programs by pressing F5 or reopen the panel.
To avoid seeing the misleading message, either press F5 or reopen the dialog box. Any Java Web Start
application that was downloaded and cached with the JDK or JRE will no longer appear in the list of
currently installed programs.
Java Plug-in
Java Plug-in technology, included as part of the JRE, establishes a connection between popular browsers
and the Java platform. This connection enables applets on websites to be run within a browser on the
desktop.
The Java Plug-in is automatically enabled for supported web browsers during installation of the JRE. No
user intervention is necessary.
Note:
In Java SE 10, the version of the Java Plug-in that is available in versions of the JRE prior to Java SE 6
Update 10 has been deprecated. However, this earlier version of the Java Plug-in is still shipped with Java
SE 10 for compatibility purposes but is no longer fully supported. It will be removed in a future release.
deployment.expiration.check.enabled=false
To disable automatic updates, on the Update tab of the Java Control Panel, deselect the Check for
Updates Automatically check box.
The Java Removal Tool is integrated with the JRE installer. After JRE 10 is installed, the Java Removal
Tool provides the list of outdated Java versions in the system and helps you to remove them.
Note:
The Java Uninstall tool will not run if your system administrator specified a deployment rule set in your
organization.
A deployment rule set enables enterprises to manage their Java desktop environment directly and continue
using legacy business applications in an environment of ever-tightening Java applet and Java Web Start
application security policies. A deployment rule set enables administrators to specify rules for applets and
Java Web Start applications; these rules may specify that a specific JRE version must be used.
Consequently, the Java Uninstall tool will not run if it detects a deployment rule set to ensure that no
required JREs are uninstalled.
See Deployment Rule Set in the Java Platform, Standard Edition Deployment Guide.
If you see the error message system error during decompression, then you might not have
enough space on the disk that contains your TEMP directory.
If you see the error message This program cannot be run in DOS mode, then do the following:
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.
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.