Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 9075 invoked from network); 9 Jun 2007 15:31:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2007 15:31:57 -0000 Received: (qmail 9479 invoked by uid 500); 9 Jun 2007 15:31:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9436 invoked by uid 500); 9 Jun 2007 15:31:47 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 9418 invoked by uid 99); 9 Jun 2007 15:31:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2007 08:31:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2007 08:31:42 -0700 Received: from d1-emea-09.sun.com (d1-emea-09.sun.com [192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l59FVIOD022297 for ; Sat, 9 Jun 2007 15:31:20 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JJD00K01KCVRW00@d1-emea-09.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Sat, 09 Jun 2007 16:31:18 +0100 (BST) Received: from localhost ([129.159.112.231]) by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JJD005CRKG5LYOU@d1-emea-09.sun.com> for derby-dev@db.apache.org; Sat, 09 Jun 2007 16:31:18 +0100 (BST) Date: Sat, 09 Jun 2007 17:31:17 +0200 From: Knut Anders Hatlen Subject: Re: Compile failing: can't find org.apache.xpath.* In-reply-to: <56a83cd00706081620r2fb657d3j1347c7187d657c51@mail.gmail.com> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <56a83cd00706081620r2fb657d3j1347c7187d657c51@mail.gmail.com> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org David Van Couvering writes: > I'm a little stumped. All of a sudden my build started failing > > compile_iapi_error_jsr169: > compile_reference: > Compiling 4 source files to /Users/David/code/derby/trunk/classes > /Users/David/code/derby/trunk/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:60: > package org.apache.xpath does not exist > > I am not sure if this is relevant, but I have this in my ant.properties: > > j14lib=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes > > Notice I am pointing j14lib to a 1. 5 location. I'm not sure if that's what causing it, but in Sun Java SE 5.0, many XML related classes were moved from the org.apache package hierarchy into com.sun.org.apache to avoid conflicts with jar files installed by users. Perhaps it would work if you downloaded the jar files from http://xalan.apache.org and included them in j14lib. > This is because there is no mechanism that I can see in Derby to build > with 1.5. The problem is, on a Mac, there *is* no 1.6 JDK. It's > either 1.4 or 1.6. > > Regardless if this is the cause of my problems, Is there a correct way > to build with a 1.5 compiler? If not, how would I go about adding > this? I don't think there is a correct way currently. Some of the code (two classes in the lock manager) is compiled for 1.5 with the 1.6 compiler if it's available, but that won't work if there's no 1.6 JDK for the platform. You could perhaps try the same approach as we currently use for 1.6 and create build targets that only run if the jdk15 property is set. That is, the build targets would have to look for the compiler in ${jdk15}/bin/javac and have an attribute if="jdk15" to prevent them from running if the jdk15 variable isn't defined, and fork="yes". Alternatively, if we're ready to add Java 1.5 as a requirement for building Derby, we could have a j15lib variable and non-optional, non-forking build targets similar to the ones we have for Java 1.4 and had for Java 1.3. -- Knut Anders