|
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 ); }
|
- installing a package thro java rgsiva
- Re: installing a package thro java Michael Brubaker
- Re: installing a package thro java David S. Moss
