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 11.2.0.2.0 and later
Information in this document applies to any platform.

Symptoms

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 11.2.0.2 against database server 11.2.0.2, the following error occurs at connection:


Caused by: java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
... 26 more


Changes

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

Cause

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