aspose file tools
The moose likes Applets and the fly likes Signed Applet retuns Java.security.AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Signed Applet retuns Java.security.AccessControlException" Watch "Signed Applet retuns Java.security.AccessControlException" New topic
Author

Signed Applet retuns Java.security.AccessControlException

Nitin Sinha
Greenhorn

Joined: May 08, 2008
Posts: 17
Hi,

I have an signed applet that tries to run ipconfig/all on user system to get the unique macAddress from the client machine

but each time I try to run it it throws the folling exception -



I tried to google the issue but it says that I need to set policy file in bb-manifest.xml. Where do i need to define this file & how would my applet gain refernce to policy from bb-manifest.xml
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10724
    
    9

Looks like you might not have signed the jar properly. Does your signed jar have MYCERT entries under META-INF?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
I've never heard of a bb-manifest.xml file; I doubt that it will help in this case.

The code may need to be run as privileged code, though. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Signed Applet retuns Java.security.AccessControlException