db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <rick.hille...@oracle.com>
Subject Re: derby 10.5 build failing
Date Fri, 08 Oct 2010 18:06:07 GMT
Hi Vipul,

The property setting machinery is a little tricky. What are the contents 
of the following directories:

/usr/lib/jvm

/usr/jdk

Thanks,
-Rick

vipul modi wrote:
> Hi Rick
>
> The complete output is :
>
> Buildfile: build.xml
>
> checkCompilerLevel:
>
> setInitialProperties:
>
> init:
>     [mkdir] Created dir: /home/vipul/derby_repo/10.5/classes
>     [mkdir] Created dir: /home/vipul/derby_repo/10.5/classes/empty
>
> ensuresanitystate:
>
> evaluate.sane:
>
> ensuresanitystate.sane:
>
> sane:
> [propertyfile] Creating new property file: 
> /home/vipul/derby_repo/10.5/java/engine/state.properties
>
> ensuresanitystate.insane:
>
> setissane:
>
> prebuild:
>
> compile:
>     [javac] Compiling 1 source file to /home/vipul/derby_repo/10.5/classes
>
> build:
>
> setCompilerProperties:
>
> printCompilerProperties:
>      [echo] Before setting properties:  compilerPropsAlreadySet = 
> ${compilerPropsAlreadySet}
>      [echo] Before setting properties:  compilerLevel16 = 1.6
>      [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 <http://os.name> = Linux
> [setJdkProperties] j14lib = null
> [setJdkProperties] j15lib = null
> [setJdkProperties] j16lib = null
> [setJdkProperties]
> [setJdkProperties] Setting property java15compile.classpath to
> [setJdkProperties] Setting property java16compile.classpath to 
> /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
>
> printCompilerProperties:
>      [echo] After setting properties:  compilerPropsAlreadySet = true
>      [echo] After setting properties:  compilerLevel16 = 1.6
>      [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
>
> jsr169stubs:
>     [mkdir] Created dir: /home/vipul/derby_repo/10.5/classes/stubs
>     [mkdir] Created dir: /home/vipul/derby_repo/10.5/classes/stubs/jsr169
>     [javac] Compiling 26 source files to 
> /home/vipul/derby_repo/10.5/classes/stubs/jsr169
>     [javac] Fatal Error: Unable to find package java.lang in classpath 
> or bootclasspath
>
> I am using lucid linux can it be problem.
>
> Thanks for your help
>
> Vipul
>
> On Fri, Oct 8, 2010 at 6:38 PM, Rick Hillegas 
> <rick.hillegas@oracle.com <mailto:rick.hillegas@oracle.com>> 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 <http://os.name> <http://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
>         <knut.hatlen@oracle.com <mailto:knut.hatlen@oracle.com>
>         <mailto:knut.hatlen@oracle.com
>         <mailto:knut.hatlen@oracle.com>>> wrote:
>
>            vipul modi <vipul.1409@gmail.com
>         <mailto:vipul.1409@gmail.com> <mailto:vipul.1409@gmail.com
>         <mailto:vipul.1409@gmail.com>>>
>
>            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


Mime
View raw message