My Oracle Support Banner

How to Silently Install Java SE JDK and JRE in Separate User-defined Directories (Doc ID 1412533.1)

Last updated on JANUARY 02, 2022

Applies to:

Java SE JDK and JRE - Version 1.3.1 and later
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)


On Windows operating systems, Java SE can be installed in non-interactive mode via command-line installation.  For Java SE, this approach is called 'silent installation'.  With Java SE 6, the details are described in 'JRE Installer Options':

According to the documentation, the Java SE JDK can be installed in a user-defined directory by using the '[INSTALLDIR=<drive>:\<install_path>]' parameter. However, Java SE JDK installs not only the JDK, but also a corresponding public JRE in a separate directory.  This JRE is installed in the default directory 'C:\Program Files\Java\jre6'.

The question is: how can the installation directory for the JRE (that comes with the JDK) be specified in a command-line installation?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.