Is used Java d and s

How do I perform an automatic (unattended) Java installation?


This article applies to:
  • Platform (s): Windows 10, Windows 2008 Server, Windows 7, Windows 8, Windows XP
  • Java version (s): 7.0, 8.0

This page describes options for installing the Java SE Runtime Environment (JRE) on Windows 32-bit platforms. The description is aimed at:

  • System administrators who deploy the JRE with Java plug-in and Java Web Start technologies on multiple PCs in the intranet without user interaction.

  • Vendors whose products require the JRE. The JRE can be installed with the product fully automatically (without interaction via the command line).

JRE installers are created using Microsoft Windows Installer (MSI) 2.0 technology. MSI includes built-in support for automatic or unattended installations. This document explains how to manually install the JRE using the file that runs the MSI.


Java 8

For more information, see the Windows JRE 8 Installation Options (docs.oracle.com).

Command line installation

This section describes the command line options for the JRE Windows offline installer. Run the installer as follows:

  • refers to the base file name of the JRE Windows offline installer (example:).
  • specifies the path to the configuration file for the installation program.
    For more information, see Installing With a Configuration File (docs.oracle.com).
  • are options with specified values ​​separated by spaces. Use the same options as in Table 20-1, Configuration file options (docs.oracle.com) are listed. You can also use the option to have the JRE Windows offline installer do a fully automated installation.

Java 7

For more information, see the JRE 7 Windows Installation Options (docs.oracle.com).

Command line installation

The Java SE 7 Windows offline installer command has the following syntax:

Note
  • is the single executable installer for the JRE.
  • If used, this indicates a fully automated installation.
  • If used, this indicates the drive and path of the JRE. If not specified, the installation takes place in (default directory).
  • If used, this indicates a static installation. For more information on static installations, see Static Installation in Patch-in-Place and Static JRE Installation (docs.oracle.com).
  • If you use, this will run everyone Java application deactivated in the browser. (Default) enables Java applications in the browser. This field is available from the 7u10 release. For more information, see Setting the Security Level of the Java Client (docs.oracle.com).
  • If used, this sets the level of security for unsigned Java apps running in a browser. Possible values ​​for this field are VH (very high), H (high, standard) or M (medium). This field is available from the 7u10 release. For more information, see Setting the Security Level of the Java Client (docs.oracle.com).
  • If you use it, free offers like browser add-ons will be bypassed entirely. This field is available from the 7u55 release. Please note that free offers and thus this functionality only apply to 32-bit JRE online installation programs and automatic update processes.
example 1
The JRE installer is up and you want to install the following configuration:
  • Run Windows installation
  • Install JRE core, additional fonts, colors and sound bank

The command to install the above configuration is as follows:

Example 2
The JRE installer is up and you want to install the following configuration:
  • Perform an offline Windows installation and install the JRE in drive D in
  • Install all features of the JRE

The command to install the above configuration is as follows:

Note: To keep the MS-DOS window open until the Java installation is complete, use the start command as follows:


Create log file

You can use a log file to check whether an installation was successful. To create a log file describing the installation, append the installation command and scroll to the bottom of the log file to check.

The following is an example of how to create a log file:

In this example the log is written to the file.