[jdom-interest] Question on Running JDOM

Michael Chang mchang at gnxchange.com
Wed May 2 17:15:44 PDT 2001

I put the JDOM.jar and the xerces.jar in the jdk1.3\lib\ext folder and I can
Compile the sample Java files. However whenever I run it using the Java
command, this is what I get. I already made the classpath look in the
current directory. Thanks.

Exception in thread "main" java.lang.NoClassDefFoundError: Count (wrong
name: samples/Count)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

More information about the jdom-interest mailing list