Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 84512 invoked from network); 8 Oct 2010 14:53:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Oct 2010 14:53:01 -0000 Received: (qmail 98883 invoked by uid 500); 8 Oct 2010 14:53:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98866 invoked by uid 500); 8 Oct 2010 14:53:01 -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 98859 invoked by uid 99); 8 Oct 2010 14:53:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 14:53:00 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 14:52:54 +0000 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o98EqWbj010419 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 8 Oct 2010 14:52:33 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o96HmB0Z000487 for ; Fri, 8 Oct 2010 14:52:30 GMT Received: from abhmt017.oracle.com by acsmt354.oracle.com with ESMTP id 667369161286549502; Fri, 08 Oct 2010 07:51:42 -0700 Received: from [129.159.139.223] (/129.159.139.223) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 08 Oct 2010 07:51:41 -0700 Message-ID: <4CAF3012.2070607@oracle.com> Date: Fri, 08 Oct 2010 16:52:02 +0200 From: Kristian Waagan User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.7) Gecko/20100830 Thunderbird/3.1.1 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: derby 10.5 build failing References: <4CAF17D1.1010801@oracle.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08.10.10 16:34, vipul modi wrote: > Hi Rick > > The complete output is : [ snip ] > I am using lucid linux can it be problem. Hi Vipul, If you have the time, do you mind checking out Derby trunk [1] on *the same machine*, and then run the following command from the top-level directory: ant -DprintCompilerPropertiesVerbose=true|grep setJdkProperties (it's the output from the section setCompilerProperties we're interested in) This is probably the easiest way to diagnose the problem, as it may tell you why your Java installation isn't being picked up properly. Note that this property won't work for the Derby 10.5 code base. Regards, -- Kristian [1] svn checkout https://svn.apache.org/repos/asf/db/derby/code/trunk/ > > Thanks for your help > > Vipul > > On Fri, Oct 8, 2010 at 6:38 PM, Rick Hillegas > > wrote: > > Hi Vipul, > > Unfortunately, this output perplexes me because the compiler level > hasn't been determined. Could you post the output from the > following build command, up through the last diagnostic which > begins with the string "[echo] After setting properties": > > ant -quiet clobber > ant -DprintCompilerProperties=true all > > Thanks, > -Rick > > > > vipul modi wrote: > > Hi > > This is the output of the above command .. > [echo] Before setting properties: compilerPropsAlreadySet = > ${compilerPropsAlreadySet} > [echo] Before setting properties: compilerLevel16 = > ${compilerLevel16} > [echo] Before setting properties: jsr169compile.classpath > = ${jsr169compile.classpath} > [echo] Before setting properties: j14lib = ${j14lib} > [echo] Before setting properties: java14compile.classpath > = ${java14compile.classpath} > [echo] Before setting properties: j15lib = ${j15lib} > [echo] Before setting properties: java15compile.classpath > = ${java15compile.classpath} > [echo] Before setting properties: j16lib = ${j16lib} > [echo] Before setting properties: java16compile.classpath > = ${java16compile.classpath} > [setJdkProperties] > [setJdkProperties] PropertySetter environment = > [setJdkProperties] > [setJdkProperties] java.vendor = Sun Microsystems Inc. > [setJdkProperties] java.home = > /usr/lib/jvm/java-6-sun-1.6.0.20/jre > [setJdkProperties] java.version = 1.6.0_20 > [setJdkProperties] os.name = > Linux > > [setJdkProperties] j14lib = null > [setJdkProperties] j15lib = null > [setJdkProperties] j16lib = null > [setJdkProperties] > [echo] After setting properties: compilerPropsAlreadySet > = true > [echo] After setting properties: compilerLevel16 = > ${compilerLevel16} > [echo] After setting properties: jsr169compile.classpath > = > /home/vipul/derby_repo/10.5/classes/stubs/jsr169::/home/vipul/derby_repo/10.5/tools/java/xalan.jar:/home/vipul/derby_repo/10.5/tools/java/serializer.jar > [echo] After setting properties: j14lib = ${j14lib} > [echo] After setting properties: java14compile.classpath > = > :/home/vipul/derby_repo/10.5/tools/java/xalan.jar:/home/vipul/derby_repo/10.5/tools/java/serializer.jar > [echo] After setting properties: j15lib = ${j15lib} > [echo] After setting properties: java15compile.classpath = > [echo] After setting properties: j16lib = ${jdk16}/jre/lib > [echo] After setting properties: java16compile.classpath > = > /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/alt-rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/deploy.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/javaws.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/management-agent.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/plugin.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar > > Thanks for ur comments and > > > On Fri, Oct 8, 2010 at 12:24 PM, Knut Anders Hatlen > > >> wrote: > > vipul modi >> > > writes: > > > Hi > > > > i was trying to build derby 10.5 source > > getting error for java.lang not found in classpath or > bootclasspath > > in build.xml whereas i am ale to compile and run normal java > files > > without any issues .... > > What could be the problem ?? > > How to make sure ant is using the rite jdk and jre?? > > I have set the ant_home and is working fine for normal build.xml > > files. > > Hi Vipul, > > I'm not sure why it fails, but if you could post the output > from the > command below, someone may be able to spot the problem. > > ant -q -DprintCompilerProperties=true setCompilerProperties > > The file BUILDING.html contains instructions (in the > Advanced Build > section) on how to override the auto-detected settings, > which may be > useful if there's a problem with the auto-detection in your > environment. > > -- > Knut Anders > > > > > -- > Vipul Modi > MSc.(Tech) Information System > BITS-Pilani Goa Campus > > > > > > -- > Vipul Modi > MSc.(Tech) Information System > BITS-Pilani Goa Campus