OAM 10g: Exception in thread "main" java.lang.NoClassDefFoundError: ImportKey (Doc ID 1124344.1)

Last updated on JUNE 07, 2017

Applies to:

COREid Access - Version: 10.1.4.3.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

You try to follow the steps below as per  Oracle´┐Ż Fusion Middleware Security Guide 11g Release 1 (11.1.1)

Java_install_dir\doc>java -Dkeystore=jkscerts ImportKey aaa_key.der aaa_cert.der

and encounter the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: ImportKey
Caused by: java.lang.ClassNotFoundException: ImportKey
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: ImportKey. Program will exit.


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