Java 12.0.2 Silent Install (How-To Guide)

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 12.0.2 from the command line using both EXE & MSI installers.

How to Install Java 12.0.2 Silently

Java SE Development Kit 12.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 12.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-12.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 12.0.2 (64-bit)
Vendor: Oracle Corporation
Version: 12.0.2.0
Architecture: x64
Installer Type: EXE
Silent Install Switch (Option 1) jdk-12.0.2_windows-x64_bin.exe /s
Silent Install Switch (Option 2) jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=1
Silent Install Switch (Option 3) jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable
Silent Uninstall Switch: MsiExec.exe /x {3FA68A00-9C88-5E69-870A-B40CB89DC2EF} /qn
Repair Command: MsiExec.exe /fa {3FA68A00-9C88-5E69-870A-B40CB89DC2EF} /qn
Download Link: https://download.oracle.com/otn/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_windows-x64_bin.exe
Detection Script: https://silentinstallhq.com/create-a-custom-detection-script-for-java-12-development-kit-powershell/

Java SE Development Kit 12.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 12.0.2 (64-bit) Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Manually Launch the jdk-12.0.2_windows-x64_bin.exe
  5. Navigate to “C:\Users\%username%\AppData\LocalLow\Oracle\Java”
  6. Copy the jdk12.0.2_x64 folder to C:\Downloads
  7. Cancel & Close the “Java(TM) SE Development Kit 12.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\jdk12.0.2_x64 folder
  10. Enter the following command: MsiExec.exe /i jdk12.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 12.0.2 (64-bit)
Vendor: Oracle Corporation
Version: 12.0.2.0
Architecture: x64
Installer Type: MSI
Silent Install Switch: MsiExec.exe /i jdk12.0.264.msi /qn
Silent Uninstall Switch: MsiExec.exe /x {3FA68A00-9C88-5E69-870A-B40CB89DC2EF} /qn
Repair Command: MsiExec.exe /fa {3FA68A00-9C88-5E69-870A-B40CB89DC2EF} /qn
Download Link: https://download.oracle.com/otn/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_windows-x64_bin.exe
Detection Script: https://silentinstallhq.com/create-a-custom-detection-script-for-java-12-development-kit-powershell/

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 JDK 12.0.2 (64-bit) Silent Install (EXE) with Logging

jdk-12.0.2_windows-x64_bin.exe /s /L C:\Windows\Temp\jdk-12.0.2x64.log Option 1
jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=1 /L C:\Windows\Temp\jdk-12.0.2x64.log Option 2

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

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

Disable the Auto Update Feature

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

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

Suppress End User License Agreement (EULA)

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

jdk-12.0.2_windows-x64_bin.exe /s EULA=0 Option 1
jdk-12.0.2_windows-x64_bin.exe /s EULA=Disable Option 2
jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=1 EULA=0 Option 3
jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable EULA=Disable Option 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 JDK 12.0.2 64-bit (EXE)

jdk-12.0.2_windows-x64_bin.exe /s INSTALLDIR=C:\Java Option 1
jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=1 INSTALLDIR=C:\Java Option 2
jdk-12.0.2_windows-x64_bin.exe INSTALL_SILENT=Enable INSTALLDIR=C:\Java Option 3

Exclude Java Start Menu Items

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

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

Suppress Java Reboot

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

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

Disable Java Web Analytics

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