Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What if the Java applet runs and fails during the encryption step with a “no such algorithm” exception?

0
Posted

What if the Java applet runs and fails during the encryption step with a “no such algorithm” exception?

0

The specific exception is “java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA”, and is seen with Java versions older than 1.5, such as 1.4.2. The problem is caused by the lack of cryptographic code in Java versions prior to 1.5. It is not just due to the presence of “policy files” that limit what cryptography may be used (due to old-fashioned US export restrictions). Downloading and installing Sun’s “Unlimited Strength Jurisdiction Policy Files 1.4.2” from here does NOT help. The solution is to update your JRE to 1.5 or later. You really should not see this error if you have a pre-1.5 JRE, since the applet is compiled to use 1.5 and later JREs. You should be seeing this error instead.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123