Run exe in java

Hi,

By using

Runtime rt = Runtime.getRuntime();

Process proc;

proc = rt.exec("some exe");

commands I run an application in the client.

I want to run the applicationinside the java window (Frame or applet).

Is there a way?

I really need help...

[307 byte] By [eses] at [2007-11-26 12:16:09]
# 1

I can't even think of a theoretical way to grab a different process's window. Maybe it's possible with lots of JNI, but you'll probably have to dig deep into the Windows API and then writing native painting code for your window to do it. It's not unlikely though that you just can't.

By the way, Runtime.exec() and applet don't really mix.

CeciNEstPasUnProgrammeur at 2007-7-7 14:51:47 > top of Java-index,Archived Forums,Socket Programming...
# 2
This class might help you.java.lang.Runtime...You are going to have security issues with applets, I dont even think its possible to do it.MeTitusMessage was edited by: Me_Titus
Me_Titus at 2007-7-7 14:51:47 > top of Java-index,Archived Forums,Socket Programming...