You need set system permission (signed jar o cab file) before to call
Runtime

for Explorer

            try {
                        PolicyEngine.assertPermission(PermissionID.SYSTEM);
                        PolicyEngine.assertPermission(PermissionID.EXEC);
                Runtime.getRuntime().exec( " command " );
            }
            catch(Exception e) {
                System.out.println(" Don�t could to launch App " + pathApp);

            }

for netscape


          PrivilegeManager.enablePrivilege("UniversalExecAccess");
          try {
            Runtime.getRuntime().exec("command " );
            }
          catch(Exception e) {
            e.printStackTrace();        
            }
          
See more in www.jguru.com  Security faq

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Enviado el: viernes 17 de mayo de 2002 10:51
Para: [EMAIL PROTECTED]
Asunto: RE: Runtime.exec() doesn't work


Don't you need to capture the Process and then read the output from its
InputStream?

Jon

-----Original Message-----
From: Patrice Le Cozler [mailto:[EMAIL PROTECTED]] 
Sent: 17 May 2002 15:41
To: Turbine Users List
Subject: Runtime.exec() doesn't work


hi,

I need to run a linux command from my Index.java file but when I write :

Runtime.getRuntime().exec("rm -rf path-to-dir");
nothing happens and no Exception is thrown.
what's wrong ?

thanks for answers


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


----------------------------------------------------------------------------
-------------
DISCLAIMER: 
This message contains proprietary information some or all 
of which may be confidential and/or legally privileged. It is
for the intended recipient only who may use and apply the
information only for the intended purpose. 

Internet communications are not secure and none of the 
companies in the British Biotech plc group accepts 
responsibility for any loss or damage which any person or 
legal entity may suffer or incur following their reliance on 
the contents of this message. 

Any views or opinions presented are only those of the 
author and not those of British Biotech. If you are not the 
intended recipient please delete this e-mail and notify the
author immediately by calling ++44 (0)1865 748747; 
do not use, disclose, distribute, copy, print or rely on this 
e-mail.

British Biotech Pharmaceuticals Limited
Registered Office: 
Thames Court, Watlington Road,
Oxford, Oxfordshire, OX4 6LY
Registered in England and Wales No 1985479


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to