Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 64669 invoked from network); 17 Jan 2006 01:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 01:28:27 -0000 Received: (qmail 54666 invoked by uid 500); 17 Jan 2006 01:28:22 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 54650 invoked by uid 500); 17 Jan 2006 01:28:22 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 54639 invoked by uid 99); 17 Jan 2006 01:28:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 17:28:22 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.145] (HELO mta202-rme.xtra.co.nz) (210.86.15.145) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 17:28:21 -0800 Received: from mta4-rme.xtra.co.nz ([210.86.15.142]) by mta202-rme.xtra.co.nz with ESMTP id <20060117012759.DRFE28954.mta202-rme.xtra.co.nz@mta4-rme.xtra.co.nz> for ; Tue, 17 Jan 2006 14:27:59 +1300 Received: from [10.1.1.5] ([222.153.224.1]) by mta4-rme.xtra.co.nz with ESMTP id <20060117012759.KKVB1416.mta4-rme.xtra.co.nz@[10.1.1.5]> for ; Tue, 17 Jan 2006 14:27:59 +1300 Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList From: Simon Kitching Reply-To: skitching@apache.org To: Jakarta Commons Users List In-Reply-To: <6bde122b0601161704p7e4dedeaobe42a6f2a5e77309@mail.gmail.com> References: <0IT700D5SBYPSGC0@mxout4.netvision.net.il> <6bde122b0601161704p7e4dedeaobe42a6f2a5e77309@mail.gmail.com> Content-Type: text/plain Date: Tue, 17 Jan 2006 14:28:26 +1300 Message-Id: <1137461306.4768.39.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is odd. A NoClassDefFoundError means that the class named in the exception message *could* be found, but that something it depends on could not. Unfortunately, java never tells you *what* that something is. So in this case, Asaf *has* got commons-collections but doesn't have something that CursorableLinkedList requires. But commons-collections doesn't *have* any dependencies. It just uses classes provided by java 1.2. Asaf: you're not trying to run this on java 1.1 are you? Or maybe you have multiple copies of commons-collections in your classpath which are at different versions? Regards, Simon On Mon, 2006-01-16 at 20:04 -0500, Sandy McArthur wrote: > The package of the missing class should be a big clue. > > org.apache.commons.collections.CursorableLinkedList > > hrm, Commons Collections looks to be relevant. > > Also, the download page for Commons Pools gives a big hint too: > http://jakarta.apache.org/commons/pool/downloads.html > > On 1/16/06, Asaf Lahav wrote: > > I'm testing the apache generic object pool and I'm getting an exception which is as follows: > > > > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList > > > > I guess I am probably missing dependencies. > > > > Would appreciate any help. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org