ODSEE 11gR1 JRE JSTACK ERROR JAVA.LANG.NOCLASSDEFFOUNDERROR: SUN/TOOLS/JSTACK (Doc ID 1479540.1)

Last updated on AUGUST 08, 2012

Applies to:

Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 to 11.1.1.5.0 [Release 11gR1]
Information in this document applies to any platform.

Symptoms

When attempting to use the default jstack that is delivered with ODSEE 11.1.1.3 & 11.1.1.5 , the following error is encountered:

ds-/opt/dsee7/jre/bin$ ./jstack
Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/jstack/JStack
Caused by: java.lang.ClassNotFoundException: sun.tools.jstack.JStack
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: sun.tools.jstack.JStack.  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