Applet permissions

M

matiasw

Is it possible to start a new process
(Runtime.getRuntime().exec("someprog.exe")) from an Applet properly
signed?
I have it working and I can see it with Applet Viewer, but I've read
that it is because is running locally (i.e. file://). What happens when
it is downloaded via http? The browser will let it execute an external
process?

Thanks,
Matias
 
O

Oliver Wong

Is it possible to start a new process
(Runtime.getRuntime().exec("someprog.exe")) from an Applet properly
signed?
I have it working and I can see it with Applet Viewer, but I've read
that it is because is running locally (i.e. file://). What happens when
it is downloaded via http? The browser will let it execute an external
process?

Why don't you try it and see?

My interpretation is that if the Applet is signed, and if the user
trusts the signature, anything goes. But the only way to be sure is to
actually try it.

- Oliver
 
A

Andrew Thompson

Oliver said:
....
Why don't you try it and see?

Good advice.
My interpretation is that if the Applet is signed, and if the user
trusts the signature, anything goes. But the only way to be sure is to
actually try it.

[ Yep. A signed applet that the user has 'OK'd has the same
privileges as your average desktop application. It can do
pretty much anything. ]
 
R

Roedy Green

Is it possible to start a new process
(Runtime.getRuntime().exec("someprog.exe")) from an Applet properly
signed?

It can do whatever your policy file says it can do, which normally is
anything any desktop app can do.

One limitation is that you don't usually have as much RAM to play
with in an Applet, and as far as I know there is no way to change the
size of your virtual space.

With JAWS or java.exe you can set the various memory controlling
options.
 

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
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top