|
Found the problem...it had to do with a package statement. The error message was misleading, but it eventually came to me. - Michael > -------- Original Message -------- > Subject: Finding NoClassDefFoundError Error > From: michael@xxxxxxxxxxxxxxxxxx > Date: Wed, March 16, 2005 12:33 pm > To: java101 java101 <java101@xxxxxxxxxxxx>, java400-l java400-l > <java400-l@xxxxxxxxxxxx> > > I'm trying to use iText to create a PDF document. I'm getting a > NoClassDefFoundError error - how can I find the name of the class I'm > not defining in my exception trace? btw, it compiles with no errors > using the same classpath. Trace shown below... > > TIA... > > > java -classpath /OpenSource/itext/itext-1.2.jar:/michael HelloWorld > java.lang.NoClassDefFoundError > at java.lang.Throwable.<init>(Throwable.java:180) > at java.lang.Error.<init>(Error.java:37) > at > java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:30 ) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:547) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:312) > > at java.net.URLClassLoader.access$300(URLClassLoader.java:85) > at > java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:636) > at java.net.URLClassLoader.findClass(URLClassLoader.java:221) > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) > at java.lang.ClassLoader.loadClass(ClassLoader.java:245) > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:312)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.