Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Runtime.getRuntime().exec() java.io.FilePermission denied

Reply
Thread Tools

Runtime.getRuntime().exec() java.io.FilePermission denied

 
 
moongeegee
Guest
Posts: n/a
 
      09-25-2008
I can execute Runtime.getRuntime().exec() correctly without any
probelm.
After I convert to Applet, I got the following error:
java.security.AccessControlException: access denied
(java.io.FilePermission <<ALL FILES>>

I could not access server configure file to grant permission. Please
help me. What should I do? Thanks a million.
 
Reply With Quote
 
 
 
 
John B. Matthews
Guest
Posts: n/a
 
      09-25-2008
In article
<516081e3-e662-40bc-b6b7->,
moongeegee <> wrote:

> I can execute Runtime.getRuntime().exec() correctly without any
> prob[le]m. After I convert to Applet, I got the following error:
> java.security.AccessControlException: access denied
> (java.io.FilePermission <<ALL FILES>>
>
> I could not access server configure file to grant permission. Please
> help me. What should I do? Thanks a million.


"An applet cannot start any program on the host that is executing it."
Imagine how unsafe it would be if this were permitted.

<http://java.sun.com/docs/books/tutor...security_pract
ical.html>

--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
 
Reply With Quote
 
 
 
 
Dave Miller
Guest
Posts: n/a
 
      09-25-2008
moongeegee wrote:
> I can execute Runtime.getRuntime().exec() correctly without any
> probelm.
> After I convert to Applet, I got the following error:
> java.security.AccessControlException: access denied
> (java.io.FilePermission <<ALL FILES>>
>
> I could not access server configure file to grant permission. Please
> help me. What should I do? Thanks a million.

In production the applet will be running on the client computer not on
your server. If you are trying to access a file on the server, you need
to access the file with a server side process and then pass the data to
the applet. If you are trying to access a file on the client, you need
to sign your applet.

--
Dave Miller
Java Web Hosting
http://www.cheap-jsp-hosting.com/
 
Reply With Quote
 
Dave Miller
Guest
Posts: n/a
 
      09-25-2008
moongeegee wrote:
> I can execute Runtime.getRuntime().exec() correctly without any
> probelm.
> After I convert to Applet, I got the following error:
> java.security.AccessControlException: access denied
> (java.io.FilePermission <<ALL FILES>>
>
> I could not access server configure file to grant permission. Please
> help me. What should I do? Thanks a million.

Don't cross post - you're just clogging the system and making it less
likely that you will get an answer.

--
Dave Miller
Java Web Hosting
http://www.cheap-jsp-hosting.com/
 
Reply With Quote
 
moongeegee
Guest
Posts: n/a
 
      09-25-2008
On Sep 25, 1:07 pm, moongeegee <moongee...@gmail.com> wrote:
> I can execute Runtime.getRuntime().exec() correctly without any
> probelm.
> After I convert to Applet, I got the following error:
> java.security.AccessControlException: access denied
> (java.io.FilePermission <<ALL FILES>>
>
> I could not access server configure file to grant permission. Please
> help me. What should I do? Thanks a million.


Sorry for multiple post.

I need to use Runtime.getRuntime()exec(ln -s xxx xxx) for linking a
file.
Would anyone give me other alternative way to solve this issue ?
Thanks.
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      09-26-2008
On Thu, 25 Sep 2008 10:07:26 -0700 (PDT), moongeegee
<> wrote, quoted or indirectly quoted someone who
said :

>I can execute Runtime.getRuntime().exec() correctly without any
>probelm.
>After I convert to Applet, I got the following error:
>java.security.AccessControlException: access denied
>(java.io.FilePermission <<ALL FILES>>


see http://mindprod.com/jgloss/applet.html
http://mindprod.com/jgloss/signedapplet.html

Whenever applets do anything interesting, such as call exec, they
have to be signed.
--
Roedy Green Canadian Mind Products
http://mindprod.com/politics/harper.html
Anyone but Harper for Prime Minister of Canada
 
Reply With Quote
 
Nigel Wade
Guest
Posts: n/a
 
      09-26-2008
Roedy Green wrote:

> On Thu, 25 Sep 2008 10:07:26 -0700 (PDT), moongeegee
> <> wrote, quoted or indirectly quoted someone who
> said :
>
>>I can execute Runtime.getRuntime().exec() correctly without any
>>probelm.
>>After I convert to Applet, I got the following error:
>>java.security.AccessControlException: access denied
>>(java.io.FilePermission <<ALL FILES>>

>
> see http://mindprod.com/jgloss/applet.html
> http://mindprod.com/jgloss/signedapplet.html
>
> Whenever applets do anything interesting, such as call exec, they
> have to be signed.


Whenever applets do anything bizarre, such as exec("ln -s"), one has to question
the wisdom of the intent...

--
Nigel Wade
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      10-05-2008
Dave Miller wrote:
> Don't cross post - you're just clogging the system and making it less
> likely that you will get an answer.


Better than multi-posting ...

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
Access to workgroup denied =?Utf-8?B?QnVkIEtldHRlcmw=?= Wireless Networking 2 01-07-2005 03:37 AM
Access denied over wireless network =?Utf-8?B?cnZiYXNz?= Wireless Networking 3 11-13-2004 02:46 PM
Access denied =?Utf-8?B?U2FzZmxv?= Wireless Networking 1 10-12-2004 08:07 PM
Access Denied Ed. Wireless Networking 1 08-11-2004 05:28 PM



Advertisments