From derby-user-return-548-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon Jan 17 03:33:53 2005 Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 25583 invoked from network); 17 Jan 2005 03:33:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Jan 2005 03:33:53 -0000 Received: (qmail 38289 invoked by uid 500); 17 Jan 2005 03:33:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 38265 invoked by uid 500); 17 Jan 2005 03:33:52 -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 38248 invoked by uid 99); 17 Jan 2005 03:33:52 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from smtp808.mail.sc5.yahoo.com (HELO smtp808.mail.sc5.yahoo.com) (66.163.168.187) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 16 Jan 2005 19:33:50 -0800 Received: from unknown (HELO ?192.168.0.4?) (fuzzylogic@sbcglobal.net@68.121.102.246 with plain) by smtp808.mail.sc5.yahoo.com with SMTP; 17 Jan 2005 03:33:49 -0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <20050116174227.98632.qmail@web60603.mail.yahoo.com> References: <20050116174227.98632.qmail@web60603.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <746FDAEE-6838-11D9-AD12-003065905854@sbcglobal.net> Content-Transfer-Encoding: 7bit From: Andrew McIntyre Subject: Re: Build Errors (building Derby under Eclipse) Date: Sun, 16 Jan 2005 19:32:46 -0800 To: "Derby Discussion" X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jan 16, 2005, at 9:42 AM, Irum Godil wrote: > It seems to me that the Eclipse classpath file has no effect on > build.xml or the ant building. It is picking up its files from > somewhere else completely. I think I know what is going on here. I think the java executable that runs Ant from Eclipse is from a JRE installation instead of a JDK installation. For tools.jar for the taglet build, Ant tries to pick it up from the JDK relative to the setting of the Java system property java.home, to avoid having to make a copy of the JDK's tools.jar to another location. On most systems, java.home is set to the *jre* directory of the JDK installation. So, relative to this directory, tools.jar is in ${java.home}/../lib/tools.jar. However, if Ant is running from a JRE installation instead of a JDK installation, this directory will not exist. If you add the -verbose property to the Ant command line (inside Eclipse) and capture the output, the 4th line of the output will give you the location of the java.home. Once you know the location of java.home, you can copy tools.jar to where the build expects it to be (${java.home}/../lib). You could also find the location of java.home in a similar method as ant.java.version, with the following tag: > I also tried copying the tools.jar file inside: > $derbysource\tools\java file where the other jar files exist, but no > luck there too. If you are still unable to progress, another workaround would be to change java/build/org/apache/derbyBuild/build.xml, line 35, to point to a known copy of tools.jar andrew -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB6zHkDfB0XauCH7wRAqmFAKCdKC1iRT4mKbsThu+O7KDdOF0QiACeLifE lAq1waDajOpG1FpYlRGZ1Zw= =5JKB -----END PGP SIGNATURE-----