raghvendra
raghvendra

Reputation: 283

How to avoid Java security exception due to mixed code

I have an applet which is present in a signed jar. This applet uses another 3rd party jar file which is unsigned. On launching the applet I get the Mixed code warning which I want to avoid.

To solve this issue, I added "Trusted-Library: true" to the unsigned jar which is being used by my applet.

But, it still throws SecurityException. I tried this with JRE update 20 as well but problem persists.

Can someone please help me with this? How to avoid getting the warning message when I have to use an unsigned jar.

Thanks!

Upvotes: 4

Views: 1501

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328770

Use your tool chain to sign the 3rd party JAR with your key.

Upvotes: 2

Related Questions