Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 86302 invoked from network); 23 Mar 2008 21:32:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Mar 2008 21:32:05 -0000 Received: (qmail 90424 invoked by uid 500); 23 Mar 2008 21:32:02 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 90397 invoked by uid 500); 23 Mar 2008 21:32:02 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 90386 invoked by uid 99); 23 Mar 2008 21:32:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 14:32:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suranjay@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 21:31:22 +0000 Received: by py-out-1112.google.com with SMTP id a25so3302325pyi.13 for ; Sun, 23 Mar 2008 14:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=DsIz7lEZo4/ibXIHWplN5P2SeXA3HHN0fB2LuX5HSTk=; b=kwreYXsNBV/Cu6e8qAurjfmVdFCAWaDgHCX7INbWJ97p01ixVdrR98ebJOwENqoCWphyPC5N5zdwFrhwvR3aQsT0hCMWovShoh2GDyD0XWuY3gwrbHm/JBSYujALSBk4YhW/HCLTPj5wLh/fWm7Vy54+5Joc/PgQktPf+PiTV/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=OaiI8HpFYB2AhRePNfm0OWrVLSCYEYpd2g0g3XQtvPznl2BfEvHOAoyiDLqHMZ3RYCQqvESSTP86kTZacRHuV4of7k/nlc6IdgEzcD1zF/5Caaa0yiDp1VDcGwgcAqG4JPoTh29M42Ku/UbS+ChifsD8fSNSNDHTlRSR4nrHmt4= Received: by 10.65.122.13 with SMTP id z13mr11525182qbm.54.1206307891980; Sun, 23 Mar 2008 14:31:31 -0700 (PDT) Received: from ?192.168.1.103? ( [124.43.206.140]) by mx.google.com with ESMTPS id e16sm5553236qba.30.2008.03.23.14.31.25 (version=SSLv3 cipher=RC4-MD5); Sun, 23 Mar 2008 14:31:31 -0700 (PDT) Subject: ClassDefNotFoundError for ij when running test From: Suran Jayathilaka To: derby-user@db.apache.org Content-Type: text/plain Date: Mon, 24 Mar 2008 03:01:15 +0530 Message-Id: <1206307875.11443.9.camel@suran-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have the derby source built successfully and the jars were created. Using a classpath that contains the jars/classes I can start ij. But when I try to run a test, say supersimple.sql, with the exact same classpath, I get a Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/derby/tools/ij ----- 27 del < 0 rows inserted/updated/deleted 28 del < ij> 28 add > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/tools/ij Test Failed. *** End: supersimple jdk1.5.0_09 2008-03-24 02:49:30 *** ----------- The command I issue is like the following (ignore the linebreaks). This command I issued from the derby.source folder after successfully building. The same occurs if I try with the jars. java -cp ../derbytest/testingjars/junit-3.8.2.jar:../derbytest/testingjars/jakarta-oro-2.0.8.jar:classes/ org.apache.derbyTesting.functionTests.harness.RunTest lang/supersimple.sql But if I give java -cp ../derbytest/testingjars/junit-3.8.2.jar:../derbytest/testingjars/jakarta-oro-2.0.8.jar:classes/ org.apache.derby.tools.ij ij starts with no trouble. I spent a couple of hours trying to fins out what the problem is, to no avail. Can anyone please help? Thanks. Suran.