Santosh Dawara wrote:
> 
> Hi,
> 
> What if someone tried a
> Runtime.getRuntime().exec("java"); ?
> or Runtime.getRuntime().exec("javac");
> 
> I get an IOException for the same.
> Wheras, native applications (like "ls" and "clear") work fine.
> 
> Whats the differance between the two calls ?
> 

On my system, ls is a binary, but java is a shell script wrapper.
I think you need to exec /bin/sh and pass "-c /path/to/java"

That's what I'd try, anyway.

--
Joi Ellis                    Software Engineer
Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to