If I understand your question, this may be the answer.
 
 Starting with a clean application:
        Process p = Runtime.getRuntime().exec( "mspaint.exe");  // Note:  the .exe is optional, but I use it because it is more self-documenting

         // Wait for it to finish running
         try {
                  p.waitFor();
         } catch( InterruptedException ie ) { System.out.println( ie ); }


Starting with a particular file:
        Process p = Runtime.getRuntime().exec( "mspaint.exe C:\\myPicture.bmp"); // Note this is Windows specific code, you may need to modify for a more general platform

         // Wait for it to finish running
         try {
                  p.waitFor();
         } catch( InterruptedException ie ) { System.out.println( ie ); }


----- Original Message -----
From: rgsiva
Sent: Thursday, November 22, 2001 7:22 PM
Subject: installing a package thro java

Hi
In my project I am developing a web page which fetches the details like application name,directory in which it is to be installed ,and submits the request to the servlet.The servlet has to install the package automatically on the system(without user double-clicking the exe).Is it possible with java?How?.Can I able to simulate the double-clicking of the application package to start installation atleast.
Please help me
Thanks in advance
sivanantham

Reply via email to