简体   繁体   中英

Permissions error for a signed Java applet when including external JAR files

I have a signed Java applet. And it works fine. But now I have to integrate some 3rd party JAR files with it. When I test it from Eclipse, the whole thing works correctly. But when I test it as an applet, it gives me a java.security.AccessControlException: access denied (java.io.FilePermission ...)

I thought this was because those 3rd party JAR files don't have a java.policy.applet within them. But manually adding the policy file doesn't get rid of the error.

What am I missing? Thanks!

============================

All the 3rd party JAR files sit on the server filesystem like so: A.jar, B.jar, C.jar. And I include them in the applet tag like so:

<applet
    archive="my.jar,A.jar,B.jar,C.jar">
</applet>

Also, in the MANIFEST/MANIFEST.MF file in my.jar, I include those JAR files like so:

Class-Path: A.jar,B.jar,C.jar

如果它们正在尝试受限操作,则还必须对这些jar进行签名。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM