|
Ok, Figured out the problem was a mismatch between the package name and the directory structure it was stored in. Charles Wilt iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121 > -----Original Message----- > From: Wilt, Charles > Sent: Wednesday, November 10, 2004 8:22 AM > To: java400-l@xxxxxxxxxxxx > Subject: java.lang.NoClassDefFoundError --- why no class name, what's > not found??? > > > Ok, > > Trying to run my first iSeries Java program, a modified version of the > ReceiveRequest presented in last months iSeries NEWS for > interfacing RPG to > external DBs using JDBC. > > However, when I try to start it I get the following: > 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:290) > > at java/net/URLClassLoader.access$300(URLClassLoader.java:63) > > at > java/net/URLClassLoader$ClassFinder.run(URLClassLoader.java:609) > > at java/net/URLClassLoader.findClass(URLClassLoader.java:199) > > 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) > > > > Why doesn't it tell me which class wasn't found?? Here's the > command I'm > using to start: > java -Djava.version=1.4 -cp .:/jdbc/oracle/ojdbc14.zip > ReceiveRequest > > > I tried adding the -verbose, but it didn't seem to be of much > help. I get a > whole bunch of "Loading class ..." messages. Then the same error: > Loading class java/security/ProtectionDomain$1.class from > /QIBM/ProdData/Java400/jdk14/lib/security.jar > Loading class java/security/Policy.class from > /QIBM/ProdData/Java400/jdk14/lib/security.jar > java.lang.NoClassDefFoundError > > Loading class java/lang/ThreadLocal$ThreadLocalMap.class from > /QIBM/ProdData/Java400/jdk14/lib/rt.jar > Loading class java/lang/ThreadLocal$ThreadLocalMap$Entry.class from > /QIBM/ProdData/Java400/jdk14/lib/rt.jar > 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:290) > > at java/net/URLClassLoader.access$300(URLClassLoader.java:63) > > at > java/net/URLClassLoader$ClassFinder.run(URLClassLoader.java:609) > > at java/net/URLClassLoader.findClass(URLClassLoader.java:199) > > 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) > > > Is it the ThreadLocal$ThreadLocalMap$Entry.class that is a problem? > > > Thanks, > > Charles Wilt > iSeries Systems Administrator / Developer > Mitsubishi Electric Automotive America > ph: 513-573-4343 > fax: 513-398-1121 > > -- > This is the Java Programming on and around the iSeries / > AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. >
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.