cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute ".exe" files using java

Former Member
0 Kudos

Hi,

This is guruvulu,

I have a problem in executing ".exe" files.For Example InternetExplorer.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can execute .exe files in JAVA using the following code.

Runtime rt1 = Runtime.getRuntime();

Process pc = rt1.exec("someexe.exe");

you can get the output of the executed exe file in

in = pc.getInputStream(); //this returns a InputStream

hope this solves your problem.

regards,

P.Venkat

Answers (0)