Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Applet permissions

Thread view: 
matiasw@gmail.com - 31 Oct 2005 21:57 GMT
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
Oliver Wong - 31 Oct 2005 22:32 GMT
> Is it possible to start a new process
> (Runtime.getRuntime().exec("someprog.exe")) from an Applet properly
[quoted text clipped - 3 lines]
> 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
Andrew Thompson - 01 Nov 2005 04:47 GMT
>>Is it possible to start a new process
>>(Runtime.getRuntime().exec("someprog.exe")) from an Applet properly
>>signed?
...
>     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.  ]
Roedy Green - 01 Nov 2005 06:42 GMT
>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.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.