Using encryption that would need Java Policy Files in openjre
问题 if i want to use java and encryption with keys longer than 128bit i have to use the Java Policy Files. How to get those applications up and running with openjre? I get the same error i get using oracle jre without policy files, but i can't simply use the Oracle Policy Files? or can i? Or would building the project with openjdk help? Thank You 回答1: I found the following. It seems to solve all the policy problems i ever had. try { Field field = Class.forName("javax.crypto.JceSecurity")