Thursday, October 29, 2009

How Can Run an .exe file in java

Example:-
import java.io.*;
class test{
public static void main(String args[]){
try{
String str="C:/Program Files/Adobe/Reader 9.0/Reader/AcroRd32.exe";
Runtime.getRuntime().exec(str);
}
catch(Exception e){
}
}
}





No comments: