Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to access the dll in java applet?
Hi to all,
Can you please help me in this issue....
Using jni concept i cteated a dll file.
and i created a solution in net beans IDE.
in the net beans IDE iam able to access.
but using appletviewer i am not able to access,
i am getting te following exception.
any one Can you please help?
D:\>appletviewer html.html
Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: acc
ess denied (java.lang.RuntimePermission loadLibrary.D:/A/B/JNIDllFile.dll)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:323)
at java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkLink(SecurityManager.java:818)
at java.lang.Runtime.load0(Runtime.java:764)
at java.lang.System.load(System.java:1005)
at in.gov.uidai.auth.biometric.AuthPOC2FingerPrintAPI.<init>(AuthPOC2Fin
gerPrintAPI.java:68)
at MainClass.paint(MainClass.java:25)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:306)
at java.awt.Component.dispatchEventImpl(Component.java:4577)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
1 Answer
- Anonymous10 years agoFavorite Answer
The jar that contains the class that loads the library must be signed as well otherwise the whole point of signing applets is defeated (People would sign only one applet and call all other naughty applets from it). Signing an applet affects the operations perfomable by instances of that applet not the performance/permissions of objects executing within the same context.