11 JRE Installation Options for Windows System Administrators and Vendors

This topic describes the options for installing, configuring, and creating a log file for the Windows Java Runtime Environment.

Introduction to JRE Installation Options

This section describes the installation options for Java SE Runtime Environment (JRE) 9 on the Windows platform and are intended for:

  • System administrators who are deploying the JRE with Java Web Start technologies on multiple PCs in their intranet, without user interaction.

  • Vendors having products requiring the JRE. The JRE can be silently (noninteractively from the command line) installed with their product.

JRE installers are built using Microsoft Window Installer (MSI) technology. MSI contains built-in support for silent installations and contains instructions to manually install the JRE using the .exe file that runs the MSI.

JRE Command-Line Installation

This section describes the command-line options for the JRE Windows Offline Installer.

Run the JRE installer as follows:

jre[INSTALLCFG=configuration_file_path] [options]

  • jre refers to the JRE Windows Offline Installer base file name (for example, jre-

  • INSTALLCFG=configuration_file_path specifies the path of the installer configuration file. See Installation of the JRE with a Configuration File.

  • options specified values separated by spaces. Use the options listed in Configuration File Options. To perform a silent installation, you can use the option /s for the JRE Windows Offline Installer.

JRE Static 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.

The default installation directory of a static JRE is C:\Program Files\Java\jre-n, where n is the full Java SE release and update number (for example, n = for release 9 Minor 1, Security 1, and Patch 1).

Creating a Log File

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 installation command and scroll to the end of the log file to verify the status of the installation.

The following is an example of creating a log file:

jre-9-windows-x64_bin.exe /s /L C:\<path>\setup.log

The log file is written to the C:\<path>\setup.log file.