Install Java using CMD script

cmd, installation, java

Solution

There is a `/s` option in JRE installer (see here), so basically you can. However, you will have to somehow download JRE to client's workstation. I suggest using wget for this.

However, you can also use java-to-exe wrappers - JSmooth for example can automagically download JRE for you if it is not installed.

Problem

I am writing an application using Java and I want to send it to the customer. But he doesn't have Java on his computer (OS Win XP). I want to automate the installation using command shell scripting. Is it possible?

Original source