java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec Connecting From Windows Client After Upgrading To Java 1.6 and JDBC 11g

(Doc ID 1327446.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


Database connectivity issue after migrating to windows system from Unix system which was working perfectly fine with java 1.4 and JDBC 10g.
After upgrading to JDBC against database server, the following error occurs at connection:

Caused by: java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
... 26 more


Upgrade from Java 1.4 to Java 1.6, and from JDBC 10g to JDBC 11g.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms