Click to See Complete Forum and Search --> : JavaScript Process Spawn


shimhyunju
04-06-2003, 02:27 PM
Hi all,

I am developing a tool with HTML and JavaScript.
What I want to do with it is when a button is clicked a new process(Java class) is spawned and run.

I know in Java I can spawn a new process by
Runtime.getRuntime().exec(" ");

I was looking for a way to spawn an external process from JavaScript but was not able to find any example.

Can somebody help me?

Hyunju

khalidali63
04-06-2003, 04:29 PM
I'd doubt that JavaScript itself has any replacement for
Runtime.getRuntime().exec(" ")

Your best bet should be write a signed applet and use the same command in applet.What you can do is call a function in java class through applet with javascript

Hope this helps

Cheers

Khalid