How do I silently install Java's SDK and the JRE?
Posted on 2006-06-23
I'm trying to package up both Apache Tomcat and the JDK, along with my own web app into an installer package, so I can simplify deployment.
During the process, I execute 'j2sdk-1_4_2_08-windows-i586-p.exe "/s /v"/qn JAVAUPDATE=0"', to install the JDK silently. The JDK gets installed, but not the java runtime, so when Apache Tomcat is installed, it doesn't find the version of java to use, and won't start up.
But if I manually install j2sdk-1_4_2_08-windows-i586-p.exe, both the JDK and JRE are installed. After that, I can install Tomcat, it picks up on the Java version, and runs fine.
So, any ideas as to what I'm missing? How can I silently install all the java components that Tomcat needs to run?
Any thoughts would be appreciated, I'm a little stuck on this one.