Skip to main content

Deploy Oracle Java 8 for Windows with a Fileset

Description

Deploy the Oracle Java 8 JRE

This recipe shows youpackages the stepsOracle youJava need8 Windows offline EXE installer in a FileWave Fileset and runs it silently. It does not apply to followcurrent JDK installers or other Java distributions, which use different packages and deployment options.

Review licensing and application compatibility first.
Confirm that your organization is licensed to makedeploy athe selected Oracle Java Filesetrelease forand Windows.that dependent applications support removing older JRE versions.

Ingredients

Requirements

  • FileWave Central
  • Java Installer (EXE)

Directions

Build and test the Fileset

  1. Download the offline EXE update from: Oracle Download Page

  2. Create an empty Fileset and drag the Java install EXE to an appropriate location, e.g. ProgramData > fwEXE

  3. Select the EXE and choose Get Info > Executable

  4. Set to 'Execute once when activated'

  5. Add the belowfollowing Launchlaunch Argumentargument to install silently instal and remove older installedJRE versions

     below Oracle's security baseline:

    "/s REMOVEOUTOFDATEJRES=1"
  6. TestAssociate the Fileset with a representative test device, run the deployment, and verify the required Java application before wider rollout.

    JavaGetinfo.pngJava installer executable settings in a Windows Fileset

    Do not remove older JREs by default.
    Omit REMOVEOUTOFDATEJRES=1 or set it to 0 when an application still depends on an older runtime. Plan the application rollback before broad deployment.

Digging

Oracle Deeperinstaller

option

Oracle's Configuration Documentation

Applicable to online and offline installers only (.exe files and wrappers). Enables uninstallation of existing out-of-date JREs during JRE install.

REMOVEOUTOFDATEJRES

  • REMOVEOUTOFDATEJRES=0 leaves all out-of-date Java versions on the system.
  • REMOVEOUTOFDATEJRES=1 removes all out-of-date Java versions from the system.

For example, running jre1.8.0_60.exe /s REMOVEOUTOFDATEJRES=1 will remove all JREs below the security baseline.

JREs above the security baseline will not be uninstalled.

Details of baseline may be observed from Oracle's release notes:
https://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html

Legacy Installersinstallers
Although recommendation is to always useUse the latestnewest version,release legacysupported versionsby the dependent application. Older releases are available from Oracle's Java archive and may require an Oracle account and appropriate license.