You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by vipul modi <vi...@gmail.com> on 2010/10/08 08:28:40 UTC
derby 10.5 build failing
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.
Thanks
--
Vipul Modi
MSc.(Tech) Information System
BITS-Pilani Goa Campus
Re: derby 10.5 build failing
Posted by vipul modi <vi...@gmail.com>.
Hi
Its properly building the trunk , the problem is coming in only 10.5 branch
. I will try to check once again for any missing link.
Thanks
Vipul
On Fri, Oct 8, 2010 at 8:22 PM, Kristian Waagan
<kr...@oracle.com>wrote:
> 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 <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 <ma...@oracle.com>
>> <mailto:knut.hatlen@oracle.com
>> <ma...@oracle.com>>> wrote:
>>
>> vipul modi <vipul.1409@gmail.com
>> <ma...@gmail.com> <mailto:vipul.1409@gmail.com
>>
>> <ma...@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
>>
>
>
--
Vipul Modi
MSc.(Tech) Information System
BITS-Pilani Goa Campus
Re: derby 10.5 build failing
Posted by Kristian Waagan <kr...@oracle.com>.
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
> <rick.hillegas@oracle.com <ma...@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 <ma...@oracle.com>
> <mailto:knut.hatlen@oracle.com
> <ma...@oracle.com>>> wrote:
>
> vipul modi <vipul.1409@gmail.com
> <ma...@gmail.com> <mailto:vipul.1409@gmail.com
> <ma...@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
Re: derby 10.5 build failing
Posted by Knut Anders Hatlen <kn...@oracle.com>.
vipul modi <vi...@gmail.com> writes:
> there is no /usr/jdk directory
>
> only directory /usr/lib/jvm/sun-6-jdk is there , this has following
> contents
>
> . bin ext jre LICENSE README.html
> THIRDPARTYLICENSEREADME.txt
> .. COPYRIGHT include lib man .systemPrefs
>
> /usr/lib/jvm contents
>
> vipul@vipul-laptop:/usr/lib/jvm$ ls -a
> . java-1.5.0-gcj java-6-sun .java-6-sun.jinfo
> java-gcj-4.4
> .. java-1.5.0-gcj-4.4 java-6-sun-1.6.0.20 java-gcj
I think the JDK detector gets confused by the java-1.5.0-gcj-*
directories. When it looks into those directories, it doesn't find the
jars it expected to find there, and makes java15compile.classpath
empty. This problem was fixed in DERBY-4263 (I think).
One thing you may do to work around this problem is to see which value
the property java15compile.classpath had in the successful build of
trunk, and then set the property manually to that value in
~/ant.properties.
Another workaround could be to move the gcj directories out of
/usr/lib/jvm temporarily.
--
Knut Anders
Re: derby 10.5 build failing
Posted by vipul modi <vi...@gmail.com>.
there is no /usr/jdk directory
only directory /usr/lib/jvm/sun-6-jdk is there , this has following
contents
. bin ext jre LICENSE README.html
THIRDPARTYLICENSEREADME.txt
.. COPYRIGHT include lib man .systemPrefs
/usr/lib/jvm contents
vipul@vipul-laptop:/usr/lib/jvm$ ls -a
. java-1.5.0-gcj java-6-sun .java-6-sun.jinfo java-gcj-4.4
.. java-1.5.0-gcj-4.4 java-6-sun-1.6.0.20 java-gcj
On Fri, Oct 8, 2010 at 11:36 PM, Rick Hillegas <ri...@oracle.com>wrote:
> 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 <ma...@oracle.com>
>> <mailto:knut.hatlen@oracle.com
>> <ma...@oracle.com>>> wrote:
>>
>> vipul modi <vipul.1409@gmail.com
>> <ma...@gmail.com> <mailto:vipul.1409@gmail.com
>>
>> <ma...@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
>>
>
>
--
Vipul Modi
MSc.(Tech) Information System
BITS-Pilani Goa Campus
Re: derby 10.5 build failing
Posted by Rick Hillegas <ri...@oracle.com>.
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 <ma...@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 <ma...@oracle.com>
> <mailto:knut.hatlen@oracle.com
> <ma...@oracle.com>>> wrote:
>
> vipul modi <vipul.1409@gmail.com
> <ma...@gmail.com> <mailto:vipul.1409@gmail.com
> <ma...@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
Re: derby 10.5 build failing
Posted by vipul modi <vi...@gmail.com>.
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 = 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 <ri...@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> = 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 <ma...@oracle.com>> wrote:
>>
>> vipul modi <vipul.1409@gmail.com <ma...@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
Re: derby 10.5 build failing
Posted by Rick Hillegas <ri...@oracle.com>.
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> = 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 <ma...@oracle.com>> wrote:
>
> vipul modi <vipul.1409@gmail.com <ma...@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
Re: derby 10.5 build failing
Posted by vipul modi <vi...@gmail.com>.
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
<kn...@oracle.com>wrote:
> vipul modi <vi...@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
Re: derby 10.5 build failing
Posted by Knut Anders Hatlen <kn...@oracle.com>.
vipul modi <vi...@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