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

Posted by sri on Stack Overflow See other posts from Stack Overflow or by sri
Published on 2010-04-07T14:14:30Z Indexed on 2010/04/07 14:23 UTC
Read the original article Hit count: 222

Filed under:
|

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 FilePermission error.

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

© Stack Overflow or respective owner

Related posts about java

Related posts about applet