Digital Sanctum

software development, technology and other square topics

Silent Install of JDK and JRE

without comments

This week I had a requirement for scripting the installation of the Java 5 JDK and JRE. These instructions require separate install files for the JDK and JRE but will get the job done.

For the JDK, you can place the following in a *.bat file and simply run it from command line:

@echo off
echo Installing JDK…
start /w C:\temp\jdk-1_5_0_12-windows-i586-p.exe /s /v”/qn INSTALLDIR=d:\bin\Java\jdk1.5.0_12 REBOOT=Suppress”

For the JRE:

@echo off
echo Installing JRE…
start /w C:\temp\jre-1_5_0_12-windows-i586-p.exe /s INSTALLDIR=d:\bin\Java\jre1.5.0_12 REBOOT=Suppress

Some related links:

  1. http://java.sun.com/j2se/1.5.0/sdksilent.html
  2. http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/silent.html

Written by Shane

June 13th, 2008 at 6:31 pm

Leave a Reply