Java 10.0.2 Silent Install (How-To Guide)


The Java Runtime Environment, or JRE, is a software layer that runs on top of a computer’s operating system software and provides the class libraries and other resources that a specific Java program needs to run. The Java Development Kit, or JDK, is a set of tools for developing Java applications. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Java 10.0.2 from the command line using both EXE & MSI installers.

How to Install Java 10.0.2 Silently

Java SE Runtime Environment 10.0.2 (64-bit) Silent Install (EXE)

  1. Sign in to your Oracle account (Create an account if you don’t have one)
  2. Download the Java JRE 10.0.2 (64-bit) Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: jre-10.0.2_windows-x64_bin.exe /s
  7. Press Enter

After a few moments you will find Java entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Java 10.0.2 (64-bit)
Vendor:Oracle Corporation
Version:10.0.2.0
Architecture:x64
Installer Type:EXE
Silent Install Switch (Option 1)jre-10.0.2_windows-x64_bin.exe /s
Silent Install Switch (Option 2)jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1
Silent Install Switch (Option 3)jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable
Silent Uninstall Switch:MsiExec.exe /x {EECB2736-D013-5AC5-9917-7656712F6931} /qn
Repair Command:MsiExec.exe /fa {EECB2736-D013-5AC5-9917-7656712F6931} /qn
Download Link:https://download.oracle.com/otn/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jre-10.0.2_windows-x64_bin.exe

Java SE Development Kit 10.0.2 (64-bit) Silent Install (EXE)

  1. Sign in to your Oracle account (Create an account if you don’t have one)
  2. Download the Java JDK 10.0.2 (64-bit) Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: jdk-10.0.2_windows-x64_bin.exe /s
  7. Press Enter

After a few moments you will find Java entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Java JDK 10.0.2 (64-bit)
Vendor:Oracle Corporation
Version:10.0.2.0
Architecture:x64
Installer Type:EXE
Silent Install Switch (Option 1)jdk-10.0.2_windows-x64_bin.exe /s
Silent Install Switch (Option 2)jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1
Silent Install Switch (Option 3)jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable
Silent Uninstall Switch:MsiExec.exe /x {71307D56-8005-5F5E-9227-BFA2754D6E54} /qn
Repair Command:MsiExec.exe /fa {71307D56-8005-5F5E-9227-BFA2754D6E54} /qn
Download Link:https://download.oracle.com/otn/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_windows-x64_bin.exe

Java SE Runtime Environment 10.0.2 (64-bit) Silent Install (MSI)

  1. Sign in to your Oracle account (Create an account if you don’t have one)
  2. Download the Java JRE 10.0.2 (64-bit) Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Manually Launch the jre-10.0.2_windows-x64_bin.exe
  5. Navigate to “C:\Users\%username%\AppData\LocalLow\Oracle\Java\jre10.0.2_x64”
  6. On the Java Setup – Welcome window, Click Install
  7. Copy the jre10.0.2full64.msi from the “C:\Users\%username%\AppData\LocalLow\Oracle\Java\jre10.0.2_x64” directory to C:\Downloads
    • Note: Make sure to copy the MSI before closing the Java Setup Wizard because once the window is closed the MSI will disappear from the directory
  8. Close the “Jave Setup – Complete” window
  9. Manually Uninstall Java 10.0.2 (64-bit) from Programs and Features in the Control Panel
  10. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  11. Navigate to the C:\Downloads folder
  12. Enter the following command: MsiExec.exe /i jre10.0.2full64.msi /qn
  13. Press Enter

After a few moments you will find Java entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Java 10.0.2 (64-bit)
Vendor:Oracle Corporation
Version:10.0.2.0
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i jre10.0.2full64.msi /qn
Silent Uninstall Switch:MsiExec.exe /x {EECB2736-D013-5AC5-9917-7656712F6931} /qn
Repair Command:MsiExec.exe /fa {EECB2736-D013-5AC5-9917-7656712F6931} /qn
Download Link:https://download.oracle.com/otn/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jre-10.0.2_windows-x64_bin.exe

Java SE Development Kit 10.0.2 (64-bit) Silent Install (MSI)

  1. Sign in to your Oracle account (Create an account if you don’t have one)
  2. Download the Java JDK 10.0.2 (64-bit) Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Manually Launch the jdk-10.0.2_windows-x64_bin.exe
  5. Navigate to “C:\Users\%username%\AppData\LocalLow\Oracle\Java”
  6. Copy the jdk10.0.2_x64 folder to C:\Downloads
  7. Cancel & Close the “Java(TM) SE Development Kit 10.0.2 (64-bit) – Setup” window
  8. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  9. Navigate to the C:\Downloads\jdk10.0.2_x64 folder
  10. Enter the following command: MsiExec.exe /i jdk10.0.264.msi /qn
  11. Press Enter

After a few moments you will find Java entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Java JDK 10.0.2 (64-bit)
Vendor:Oracle Corporation
Version:10.0.2.0
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i jdk10.0.264.msi /qn
Silent Uninstall Switch:MsiExec.exe /x {71307D56-8005-5F5E-9227-BFA2754D6E54} /qn
Repair Command:MsiExec.exe /fa {71307D56-8005-5F5E-9227-BFA2754D6E54} /qn
Download Link:https://download.oracle.com/otn/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_windows-x64_bin.exe

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The Java installers offer the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Logging

jre-10.0.2_windows-x64_bin.exe /s /L C:\Windows\Temp\jre-10.0.2x64.logOption 1
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 /L C:\Windows\Temp\jre-10.0.2x64.logOption 2

Java JRE 10.0.2 (64-bit) Silent Install (MSI) with Logging

MsiExec.exe /i jre10.0.2full64.msi /qn /L*v "%WINDIR%\Temp\jre-10.0.2x64.log"

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Logging

jdk-10.0.2_windows-x64_bin.exe /s /L C:\Windows\Temp\jdk-10.0.2x64.logOption 1
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 /L C:\Windows\Temp\jdk-10.0.2x64.logOption 2

Java JDK 10.0.2 (64-bit) Silent Install (MSI) with Logging

MsiExec.exe /i jdk10.0.264.msi /qn /L*v "%WINDIR%\Temp\jdk-10.0.2x64.log"

Disable the Auto Update Feature

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Auto Update Disabled

jre-10.0.2_windows-x64_bin.exe /s AUTO_UPDATE=0Option 1
jre-10.0.2_windows-x64_bin.exe /s AUTO_UPDATE=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 AUTO_UPDATE=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable AUTO_UPDATE=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Auto Update Disabled

jdk-10.0.2_windows-x64_bin.exe /s AUTO_UPDATE=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s AUTO_UPDATE=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 AUTO_UPDATE=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable AUTO_UPDATE=DisableOption 4

Suppress End User License Agreement (EULA)

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with EULA Suppressed

jre-10.0.2_windows-x64_bin.exe /s EULA=0Option 1
jre-10.0.2_windows-x64_bin.exe /s EULA=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 EULA=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable EULA=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with EULA Suppressed

jdk-10.0.2_windows-x64_bin.exe /s EULA=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s EULA=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 EULA=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable EULA=DisableOption 4

Change Default Installation Directory (First Time Installs Only)

You can change the default installation directory by using the following command line parameters. In this example, I’m installing Java to “C:\Java”

Java JRE 10.0.2 64-bit (EXE)

jre-10.0.2_windows-x64_bin.exe /s INSTALLDIR=C:\JavaOption 1
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 INSTALLDIR=C:\JavaOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable INSTALLDIR=C:\JavaOption 3

Java JDK 10.0.2 64-bit (EXE)

jdk-10.0.2_windows-x64_bin.exe /s INSTALLDIR=C:\JavaOption 1
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 INSTALLDIR=C:\JavaOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable INSTALLDIR=C:\JavaOption 3

Exclude Java Start Menu Items

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Start Menu Items Excluded

jre-10.0.2_windows-x64_bin.exe /s NOSTARTMENU=1Option 1
jre-10.0.2_windows-x64_bin.exe /s NOSTARTMENU=EnableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 NOSTARTMENU=1Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable NOSTARTMENU=EnableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Start Menu Items Excluded

jdk-10.0.2_windows-x64_bin.exe /s NOSTARTMENU=1Option 1
jdk-10.0.2_windows-x64_bin.exe /s NOSTARTMENU=EnableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 NOSTARTMENU=1Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable NOSTARTMENU=EnableOption 4

Suppress Java Reboot

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with No Reboot

jre-10.0.2_windows-x64_bin.exe /s REBOOT=0Option 1
jre-10.0.2_windows-x64_bin.exe /s REBOOT=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 REBOOT=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable REBOOT=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with No Reboot

jdk-10.0.2_windows-x64_bin.exe /s REBOOT=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s REBOOT=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 REBOOT=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable REBOOT=DisableOption 4

Remove All Out-Of-Date Java JRE Versions

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Old JRE Versions Removed

jre-10.0.2_windows-x64_bin.exe /s REMOVEOUTOFDATEJRES=1Option 1
jre-10.0.2_windows-x64_bin.exe /s REMOVEOUTOFDATEJRES=EnableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 REMOVEOUTOFDATEJRES=1Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable REMOVEOUTOFDATEJRES=EnableOption 4

Java 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. 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.

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Static Configuration

jre-10.0.2_windows-x64_bin.exe /s STATIC=1Option 1
jre-10.0.2_windows-x64_bin.exe /s STATIC=EnableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 STATIC=1Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable STATIC=EnableOption 4

Disable Java Web Analytics

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Web Analytics Disabled

jre-10.0.2_windows-x64_bin.exe /s WEB_ANALYTICS=0Option 1
jre-10.0.2_windows-x64_bin.exe /s WEB_ANALYTICS=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_ANALYTICS=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_ANALYTICS=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Web Analytics Disabled

jdk-10.0.2_windows-x64_bin.exe /s WEB_ANALYTICS=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s WEB_ANALYTICS=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_ANALYTICS=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_ANALYTICS=DisableOption 4

Set Java Web Security Level to Very High

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Security Level Set to Very High

jre-10.0.2_windows-x64_bin.exe /s WEB_JAVA_SECURITY_LEVEL=VHOption 1
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_JAVA_SECURITY_LEVEL=VHOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_JAVA_SECURITY_LEVEL=VHOption 3

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Security Level Set to Very High

jdk-10.0.2_windows-x64_bin.exe /s WEB_JAVA_SECURITY_LEVEL=VHOption 1
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_JAVA_SECURITY_LEVEL=VHOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_JAVA_SECURITY_LEVEL=VHOption 3

Don’t Allow Java Applications to Run in Web Browser

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Java Web Disabled

jre-10.0.2_windows-x64_bin.exe /s WEB_JAVA=0Option 1
jre-10.0.2_windows-x64_bin.exe /s WEB_JAVA=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_JAVA=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_JAVA=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Java Web Disabled

jdk-10.0.2_windows-x64_bin.exe /s WEB_JAVA=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s WEB_JAVA=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 WEB_JAVA=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable WEB_JAVA=DisableOption 4

Disable 3rd Party Sponsor Offers

Java JRE 10.0.2 (64-bit) Silent Install (EXE) with Sponsors Disabled

jre-10.0.2_windows-x64_bin.exe /s SPONSORS=0Option 1
jre-10.0.2_windows-x64_bin.exe /s SPONSORS=DisableOption 2
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 SPONSORS=0Option 3
jre-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable SPONSORS=DisableOption 4

Java JDK 10.0.2 (64-bit) Silent Install (EXE) with Sponsors Disabled

jdk-10.0.2_windows-x64_bin.exe /s SPONSORS=0Option 1
jdk-10.0.2_windows-x64_bin.exe /s SPONSORS=DisableOption 2
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=1 SPONSORS=0Option 3
jdk-10.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable SPONSORS=DisableOption 4

Deploy Java Using Configuration Files

You can standardize your Java deployments and enforce settings at the system level by utilizing the following method.

  • Open Notepad or your favorite text editor
  • Add the following lines:
deployment.system.config=file:///C:/Windows/Sun/Java/Deployment/deployment.properties
deployment.system.config.mandatory=true

Save the file and name it: deployment.config

  • Open Notepad again
  • Add the following lines:
deployment.javaws.autodownload=NEVER
deployment.javaws.autodownload.locked
deployment.expiration.check.enabled=FALSE
deployment.expiration.decision=NEVER
deployment.expiration.decision.11.101.2=later
deployment.expiration.decision.suppression.11.101.2=true
deployment.user.security.exception.sites=C\:/Windows/Sun/Java/Deployment/exception.sites

Save the file and name it: deployment.properties

  • Open Notepad again
  • Add the following lines:
INSTALL_SILENT=Enable
AUTO_UPDATE=Disable
WEB_ANALYTICS=Disable
EULA=Disable
REBOOT=Disable
SPONSORS=Disable

Save the file and name it: java.settings.cfg

If you need to allow access to specific Java enabled sites that would normally be blocked by security checks, then you should create a fourth configuration file as referenced below.

  • Open Notepad or your favorite text editor
  • Add the following lines using your specific site names and port numbers:
https://SERVER01.YOURDOMAIN.COM:8888
http://SERVER02.YOURDOMAIN.COM:8888

Save the file and name it: exception.sites

  1. Create a C:\ProgramData\Oracle\Java directory (if not present)
  2. Copy the java.settings.cfg to C:\ProgramData\Oracle\Java\
  3. Follow the “How to Install Java 10.0.2 Silently” steps mentioned earlier in the article
  4. Create a C:\Windows\Sun\Java\Deployment directory (if not present)
  5. Copy the deployment.config, deployment.properties, and exception.sites (if required) to C:\Windows\Sun\Java\Deployment\

Reference for deployment.properties file

https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/properties.html

Reference for Java configuration file

https://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html


How to Uninstall Java 10.0.2 Silently

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Java JRE 10.0.2 (64-bit) Silent Uninstall

MsiExec.exe /x {EECB2736-D013-5AC5-9917-7656712F6931} /qn

Java JDK 10.0.2 (64-bit) Silent Uninstall

MsiExec.exe /x {71307D56-8005-5F5E-9227-BFA2754D6E54} /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Recent Posts