File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 10268
    
    8

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
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
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.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Signed Applet retuns Java.security.AccessControlException