Signed applets without mixed code warning

I create a signed applet to download files from a visitor computer, I used the WildcardFileFilter class to get files starting with some line ....

To do this, I needed to include the Apacheae Common io 2.4 jar file as a library in my project. Now my applet is signed, but when I run it, it gives a warning about mixed code, as shown here.

  http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/mixed_code.html 

Now I followed the instructions and added Trusted-Library: true in the manifest file, then it did not load this library and I got an org / apachae /...../ WildcardFileFilter error when starting the applet.

I signed this common-io_2.4.jar library file, then this warning went away, but the User requested the applet twice, which is also annoying ...

How can I get a trusted io shared file for using wildcards or any other tips ......

+1
source share
2 answers

Please go to this link and read the following:

Raising a warning is the default behavior, but there are options to control the handling of this situation.

• There are various protection options available for users and system administrators. For more information, see Mixed Code Security Settings for Users.

• There are two manifest attributes available for developers and deployers. For more information, see "Deploying signed applications and applets is safe without warning about mixed code."

+2
source

One solution is to include the library name (commons-io) in your class-path attribute in the manifest file. Another option is to extract the commons-io package and compile it with code, and then sign it. You should only get one warning message this time.

0
source

All Articles