This page describes options for installing, configuring, and creating a log file for the Windows Java Runtime Environment.
This page contains the following topics:
See "JDK 8 and JRE 8 Installation Start Here" for general information about installing JDK 8 and JRE 8.
This page describes options for installation of the Java SE Runtime Environment (JRE) on Windows 32-bit platform. It is intended for:
System administrators deploying the JRE with Java Plug-in and Java Web Start technologies on multiple PCs in their Intranet without user interaction.
Vendors having products requiring the JRE. The JRE can be silently (non-interactively from the command line) installed with their product.
JRE installers are built using Microsoft Window Installer (MSI) 2.0 technology. MSI contains built-in support for silent installations. This topic explains how to manually install the JRE using the .exe
file that runs the MSI.
This section describes the command-line options for the JRE Windows Offline Installer. Run the installer as follows:
jre [INSTALLCFG=configuration_file_path] [options]
jre
refers to the JRE Windows Offline Installer base file name (for example, jre-8u05-windows-i586.exe
).
INSTALLCFG=
configuration_file_path
specifies the path of the installer configuration file. See "Installing With a Configuration File" for more information.
options
are options with specified values separated by spaces. Use the same options as listed in Table 20-1, "Configuration File Options". In addition, you may use the option /s
for the JRE Windows Offline Installer to perform a silent installation.
If you perform a static installation of the JRE (by specifying the command-line or configuration file option STATIC=1
), then the Java Auto Update feature will leave that JRE installed during a Java update. A later version of the same JRE family will be installed in a separate directory. This mode ensures that vendors, who require a specific version of the JRE for their product, can be certain that the JRE will not be overwritten by a newer version.
The default installation directory of a static JRE is C:\Program Files (x86)\Java\jre
n
(for 32-bit versions) or C:\Program Files\Java\jre
n
(for 64-bit versions), where n
is the full Java SE release and update number (for example, n
= 1.8.0_20 for release 8 update 20).
Use a log file to verify that an installation succeeded. To create a log file describing the installation, append /L C:\
path
setup.log
to the install command and scroll to the end of the log file to verify.
The following is an example of creating a log file:
jre-8-windows-i586.exe /s /L C:\pathsetup.log
This example causes the log to be written to the path
setup.log
file.