On Tue, 18 May 1999 22:38:02 -0400, Yuet Sim Lee wrote:
>On May 12, 7:08pm, Bill Wandrack wrote:
>> Subject: Re: How to make a system call in Java
>> You can make system calls with java by using Process.
>>
>>
>> String command = "mkdir new_dir";
>> Process createNewDir = Runtime.getRuntime().exec(command);
>>
>> Yuet Sim Lee wrote:
>>
>> > I am writing a Java code which has to
>Dear Bill and others:
>
>I tried the above code suggested by Bill.
>Perhaps surprisingly, it works only on
>SUN workstations
>but not on all the other machines (a PC running LINUX,
>an SGI, and a machine running USB) that I tried.
>
>BTW, I am using the following command in a *Java Applet*,
>is it what causes the problem?
Applets normally do not have access rights to things such as exec()
since that would be a *big* security hole (large enough to drive a truck
or two through without even looking)
Anyway, applets can do this if they are given the security clearance
which can happen with signed applets or applets run from local servers
with security turned off from the applet viewer.
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]