Error Java NoSuchAlgorithmException and NoSuchPaddingException

Java at step: 77 line: 12
Unhandled exception type NoSuchAlgorithmException
Unhandled exception type NoSuchPaddingException

Compile failed.

I wrote this code on activity java step:

How could I solve this problem?, because I read the module on java that algorithm specified is not available, it throws a NoSuchAlgorithmException. I use Pega with java version /jdk1.8.0_221/.

@noverh58

It seems like the encryption algorithm or padding mechanism you’re trying to use is not available in your Java environment. Please ensure that the requested encryption algorithm and padding mechanism are available. If they are not, you may need to add the necessary Java Cryptography Extension (JCE) policy files to your Java installation. If you continue to experience issues, please provide more details about the specific algorithm and padding mechanism you’re trying to use.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

runPega.bat - Unable to find com.pega.pegarules.exec.internal.util.crypto.JCECap

Pega 7.4 Installation Failed

Field encryption in an activity