 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sri Gollamudi Guest
|
Posted: Tue Nov 04, 2003 3:16 pm Post subject: JCE and Native Executables |
|
|
Hi,
I have a swing application which uses JCE to to decrypt the encrypted
password stored in the database.
I have this application running as a standalone one and
I tried making a native executable for this application. When I run the
executable, I got this following error on JCE code
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
set u
p certs for trusted CAs: java.security.PrivilegedActionException
<
ormedURLException: no protocol: US_export_policy.jar>>
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at
at javax.crypto.Cipher.getInstance(DashoA6275)
Any idea on what is causing this error?
I am getting the error on the line
Cipher.getInstance(<algorithm name>)
Please let me know. Any help is appreciated.
Thanks,
SG
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Tue Nov 04, 2003 8:46 pm Post subject: Re: JCE and Native Executables |
|
|
Sri Gollamudi wrote:
| Quote: | Hi,
I have a swing application which uses JCE to to decrypt the encrypted
password stored in the database.
I have this application running as a standalone one and
I tried making a native executable for this application. When I run the
executable, I got this following error on JCE code
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
set u
p certs for trusted CAs: java.security.PrivilegedActionException
java.net.Malf
ormedURLException: no protocol: US_export_policy.jar
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at
at javax.crypto.Cipher.getInstance(DashoA6275)
Any idea on what is causing this error?
I am getting the error on the line
Cipher.getInstance(<algorithm name>)
Please let me know. Any help is appreciated.
Thanks,
SG
|
As I recall, to use certain kinds of crypto stuff, there is a separate
download, with all kinds of warnings about not exporting, etc. The file
I have is called jce_policy-1_4_2.zip. There are instructions in the
file that explain where to install the "unlimited strength" policy files.
Basically, you will have to make sure that those policy files get built
into your native exe.
Sorry I can't be more specific, but I haven't actually tried it myself.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|