What if the Java applet runs and fails during the encryption step with a “no such algorithm” exception?
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
- The Java applet depends on the proper installation of Java for which Telstra cannot provide support. How do I get a Java applet working?
- It takes way too long to download and initialize a Java applet. Is there any way to enhance the speed?
- My applet is no longer scriptable in Internet Explorer with Java Plug-in Software. Why?