Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Runtime and Process problem, help

2 views
Skip to first unread message

alo...@amdocs.com

unread,
Sep 15, 1999, 3:00:00 AM9/15/99
to
I am trying to open the Browser from the
Runtime class. here is the code:
Runtime rt = Runtime.getRuntime();
rt.exec("iexplore");

I get an exception:
java.io.IOException: CreateProcess: iexplore error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Compiled Code)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Runtime.java:152)

Actually when i try other commands it happends too.
What is the problem here? i am uisng winNT4.0

I'll appreciate any help.

Thanks


Daniel Santos

unread,
Sep 15, 1999, 3:00:00 AM9/15/99
to
Don't you have to say or more like "c:\winnt\system32\iexplore.exe" -
wherever it's located
0 new messages