I have a java program which runs perfectly well on SUN JRE 1.6. However, when I ran it on IBM JDK J9 built for WebSphere 8.5
, it threw following exception:
java.security.NoSuchProviderException: Provider SUN is not available
I wrote a java program to list all available providers on IBM JDK J9 and found the SUN provider was missing, even though I have already included following line in the java.security file under.
$JAVA_HOME/lib/security (i.e. /opt/IBM/WebSphere/AppServer/java/jre/lib/security)
:
security.provider.1=sun.security.provider.Sun
What else am I missing? Could someone please tell me how to enable / install this "SUN provider" on IBM JDK J9? Thank you so much!