Java

Java in Action Downloads Help Center

Installing Java

   

How do I arrange a silent (unattended) Java installation?


This article applies to:
  • Platform(s):
    Windows 98, Windows ME, Windows 2000 (SP4+), Windows XP (SP1 SP2), Windows 2003
  • JRE version(s):
    1.4.2_xx, 1.5.0, 1.4.0_xx, 1.4.1_xx



SYMPTOMS

  • System administrators want to deploy the JRE on multiple PCs on their Intranet without user interaction.
  • Developers require the JRE to be silently installed with their products.



SOLUTION

JRE installation packages are built using InstallShield Developer 7. The JRE installation executables include built-in support for silent (unattended) installations.

In general, to use the silent installation feature, run the JRE installation executable on the command line.

Here is a sample silent installation command:
j2re-1_4_2_06-windows-i586-p.exe /s /v"/qn IEXPLORER=1
ADDLOCAL=ALL UPDATE=1 /L C:\jre.log"


Here is the command for silent installation of the JRE:

<jre>.exe /s /v"/qn[ADDLOCAL=jrecore[,extra][,other_US] | ALL]
[IEXPLORER=1][NETSCAPE6=1][MOZILLA=1]
[INSTALLDIR=<drive>:\<install_path>] [REBOOT=Suppress]
[JAVAUPDATE=1][EULA=1]"


where

<jre>.exe is the single executable installer for the JRE

ADDLOCAL is either jrecore[,extra][,other_US] or ALL

IEXPLORER=1 indicates that the JRE should be registered with the Internet Explorer browser

NETSCAPE6=1 indicates that the JRE should be registered with Netscape 6 or later browsers

MOZILLA=1 indicates that the JRE should be registered with Mozilla 1.1 and later browsers

INSTALLDIR specifies the drive and path of the installation

REBOOT=Suppress indicates that if locked files are encountered the computer should not be rebooted

JAVAUPDATE=1 indicates that Java Update feature is enabled

EULA=1 indicates that End User License Agreement will be displayed on first use and not during installation


Please refer to the Java JRE 1.4.2 Developer Guide for detailed instructions on running the JRE installer executable on the command line.



MORE TECHNICAL INFORMATION

Please refer to the InstallShield Support site for complete information about the silent installation feature offered by InstallShield 7.



Sun provides third-party contact information to help you find technical support. This contact information may change without notice. Sun does not guarantee the accuracy of this third-party contact information.

The third-party products discussed in this article are manufactured by companies independent of Sun. Sun makes no warranty, implied or otherwise, regarding the performance or reliability of these products.


NEED MORE HELP?
If you require further assistance, please make sure you check through our Help and FAQ sections thoroughly. We probably have a page that answers your question.

You may find information on the following topics in the Help section:
Installing Java
Configuring Java
Error Messages
Applet Application




Help Resources
> Installing Java
> Configuring Java
> Error Messages
> Applet Application
> Legal

 

FAQ
> General Questions
> Java for Mobile Devices

 

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers | java.com Changes
Privacy | Terms of Use | Trademarks | License | Disclaimer | Contact

Sun Microsystems