I have a question , how can I call an .exe file from ajava program,I need its code.
have a look at the class Runtime and in particular at its methods exec() ; they offer an awful lot of ways to start any external program.
You can use System.exec() to call the exe..
try{Runtime.getRuntime().exec("program.exe");}catch (IOException exc){......}
It is in the process commandRuntime r = Runtime.getRuntime();Process p = r.run();