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

M

moongeegee

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.
 
J

John B. Matthews

moongeegee said:
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/tutorial/deployment/applet/security_pract
ical.html>
 
D

Dave Miller

moongeegee 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>>

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.
 
D

Dave Miller

moongeegee 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>>

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.
 
M

moongeegee

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.
 
A

Arne Vajhøj

Dave said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top