Downloading policy files with jnlp

Hello,

i made a program, that needs all rights for encryption and decryption. So it was necessary to replace the original "US_export_policy.jar" and the "local_policy.jar" with those who have no restrictions.

So far so good.

Now my program have to be downloaded with a jnlp file. And all things work fine, i even signed my jar file.

The problem is that i cant add those two policy jar files in the resource-element. I get an error message like "cant download because it was signed different than main jar...bla"

So how can i overwrite the user policy files with jnlp? or likewise?

Do i have to create an Installer Class?

Hopefully it is not necessary to download those two policy files by hand...

Thanks for your help,

Martin

[786 byte] By [ErlemanMa] at [2007-11-26 19:40:49]
# 1
Hi,you will have to sign the two replaced jars as well.Bye Schippe
Schippea at 2007-7-9 22:21:18 > top of Java-index,Desktop,Deploying...
# 2
sure schippe, but they are already signed by sun...so i cant sign them again...but i already found a solution for my problem:i create another jar file that is a kind of installer that will install those two policy files with the original ones...GreetingsMartin
ErlemanMa at 2007-7-9 22:21:18 > top of Java-index,Desktop,Deploying...
# 3
Hi,AFAIK you can sign jars even if they are already signed by another party.Bye Schippe
Schippea at 2007-7-9 22:21:18 > top of Java-index,Desktop,Deploying...
# 4
hmmm, i tried this and it did not work....maybe i have to add another parameter to jarsigner?
ErlemanMa at 2007-7-9 22:21:18 > top of Java-index,Desktop,Deploying...
# 5
OK, I just verified it.Resigning seems to work only if the jar was previously signed with the same key, say by yourself.Not really helpfull.Bye Schippe
Schippea at 2007-7-9 22:21:18 > top of Java-index,Desktop,Deploying...