I want to create an Application that can detect and install the java on pc 
 
I want to create an Application  that can detect and install the java on pc 
1) following the java, and do not install 
it should automatically download the java (silent mode) 
and install java (silent mode) 
after installation of java and finish 
I have to run mom xxx.jar 
 
2) it has the Application  detect the java already installed on the PC 
I have to run mom xxx.jar