aspose file tools*
The moose likes Features new in Java 7 and the fly likes In manifest.mf Trusted-Library: true giving me mixed code prompts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "In manifest.mf Trusted-Library: true giving me mixed code prompts" Watch "In manifest.mf Trusted-Library: true giving me mixed code prompts" New topic
Author

In manifest.mf Trusted-Library: true giving me mixed code prompts

Himanshu Gusain
Greenhorn

Joined: Jul 02, 2013
Posts: 1
My system contains four jars. One jar contains Mixedcode(applet called from javascript). The jar containing the mixed code accesses other jars also. I added the attribute Trusted-Library : true and Permissions: all-permissions in manifest.mf(I'm using Java7 update25) of the jar containing the mixed code. All the jars are self-signed. Now the problem is I'm still getting the mixed code warning, which Oracle introduced in Java 7 update21.

Should i add the attributes in manifest.mf file of other jars also ?

My observations are:

After adding Trusted-Library : true and Permissions: all-permissions in all jars(doesn't matter whether they are signed or unsigned) it works fine. All the jars are loaded.

But why do i need to add these particular attributes in all the jars(Some of jars are third party jars)? According to definition of Mixedcode and usage of the attribute Trusted-Library: true it should allow other jars once it is updated in Manifest.mf file of jar containing the applet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In manifest.mf Trusted-Library: true giving me mixed code prompts
 
Similar Threads
Applet throwing exception when running it through web browser
Java Programming Cookbook: Applet Security
ClassNotFoundException when online certification validation is enabled
SCJEA Sample questions on Sun's site (whoops)
'signing' and 'grant'