db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Waagan <krist...@apache.org>
Subject Re: Unable to build tests
Date Tue, 21 Dec 2010 18:42:27 GMT
On 21.12.2010 15:43, siddharth srivastava wrote:
> Hi,
>
>
>     Do you mind posting the output you get (only the compiler related
>     output is relevant) when specifying
>     printCompilerPropertiesVerbose=true ?
>
>
> It doesn't give any output on my machine (only gives the errors 
> related to building tests) though printCompilerProperties=true still 
> gives the same output.

That's strange.

Here's what I get on a Windows machine I tested this on:
$ ant -DprintCompilerPropertiesVerbose=true
...
printCompilerProperties:
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program 
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] PropertySetter environment =
[setJdkProperties]
[setJdkProperties] java.vendor = Sun Microsystems Inc.
[setJdkProperties] java.home = C:\Program Files\Java\jdk1.6.0_20\jre
[setJdkProperties] java.version = 1.6.0_20
[setJdkProperties] os.name = Windows Vista
[setJdkProperties] j14lib = null
[setJdkProperties] j15lib = null
[setJdkProperties] j16lib = null
[setJdkProperties] jdkSearchPath = C:\Program Files\Java
[setJdkProperties]
[setJdkProperties]
[setJdkProperties]
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program 
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] Locating JDKs:
[setJdkProperties] [verbose] candidate 'C:\Program 
Files\Java\jdk1.6.0_17' -> 'C:\Program Files\Java\jdk1.6.0_17'
[setJdkProperties] [verbose] candidate 'C:\Program 
Files\Java\jdk1.6.0_18' -> 'C:\Program Files\Java\jdk1.6.0_18'
[setJdkProperties] [verbose] candidate 'C:\Program 
Files\Java\jdk1.6.0_20' -> 'C:\Program Files\Java\jdk1.6.0_20'
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jre6' -> 
'C:\Program Files\Java\jre6'
[setJdkProperties] [verbose] candidate 'C:\Program 
Files\Java\jrmc-4.0.1-1.5.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.5.0'
[setJdkProperties] [verbose] candidate 'C:\Program 
Files\Java\jrmc-4.0.1-1.6.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.6.0'
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., 
specVersion=1.6, implVersion=1.6.0_17, path=C:\Program 
Files\Java\jdk1.6.0_17
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., 
specVersion=1.6, implVersion=1.6.0_18, path=C:\Program 
Files\Java\jdk1.6.0_18
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., 
specVersion=1.6, implVersion=1.6.0_20, path=C:\Program 
Files\Java\jdk1.6.0_20
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., 
specVersion=1.5, implVersion=1.5.0_24, path=C:\Program 
Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., 
specVersion=1.6, implVersion=1.6.0_20, path=C:\Program 
Files\Java\jrmc-4.0.1-1.6.0
[setJdkProperties]
[setJdkProperties] Selecting JDK candidates:
[setJdkProperties] INFO: No valid JDK with specification version '1.4' found
[setJdkProperties] Candidate JDK for specification version 1.5 (vendor 
Sun Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.5, 
implVersion=1.5.0_24, path=C:\Program Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] Candidate JDK for specification version 1.6 (vendor 
Sun Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.6, 
implVersion=1.6.0_20, path=C:\Program Files\Java\jdk1.6.0_20
[setJdkProperties] Setting property java15compile.classpath to 
C:\Program Files\
Java\jrmc-4.0.1-1.5.0\jre\lib\charsets.jar;C:\Program 
Files\Java\jrmc-4.0.1-1.5.
0\jre\lib\jce.jar;C:\Program 
Files\Java\jrmc-4.0.1-1.5.0\jre\lib\jsse.jar;C:\Pro
gram Files\Java\jrmc-4.0.1-1.5.0\jre\lib\management-agent.jar;C:\Program 
Files\J
ava\jrmc-4.0.1-1.5.0\jre\lib\rt.jar
[setJdkProperties] Setting property java16compile.classpath to 
C:\Program Files\
Java\jdk1.6.0_20\jre\lib\alt-rt.jar;C:\Program 
Files\Java\jdk1.6.0_20\jre\lib\ch
arsets.jar;C:\Program 
Files\Java\jdk1.6.0_20\jre\lib\deploy.jar;C:\Program Files
\Java\jdk1.6.0_20\jre\lib\javaws.jar;C:\Program 
Files\Java\jdk1.6.0_20\jre\lib\j
ce.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\jsse.jar;C:\Program 
Files\Java\
jdk1.6.0_20\jre\lib\management-agent.jar;C:\Program 
Files\Java\jdk1.6.0_20\jre\l
ib\plugin.jar;C:\Program 
Files\Java\jdk1.6.0_20\jre\lib\resources.jar;C:\Program
  Files\Java\jdk1.6.0_20\jre\lib\rt.jar
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program 
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
...

I don't remember exactly when this property was added, but it has been 
in there for a while now. I tested on trunk revision 1050000.
Derby did pick the wrong JDK earlier, but work was done to avoid that. 
If it still picks a JDK it can't use, it seems we may need further 
improvements to this logic.


Cheers,
-- 
Kristian

>
>     Note the addition of "Verbose" to the property string you used
>     previously. With this property set, you should get a list of all
>     JVMs the build system detects, and it also prints some basic
>     information about each of them.
>     It may help us understand why gjc is chosen, and if we have to
>     take action to avoid that the build fails when gjc is installed.
>
>     Also, was gjc installed by default on your machine?
>
>
> No it wasn't preinstalled. It was installed as a dependency.
>
>
> Thanks,
> -- 
> Kristian
>
> [ snip ]
>
>
>
>
> -- 
> Siddharth Srivastava
>
> When you have learned to snatch the error code from the trap frame, it 
> will be time for you to leave.


Mime
View raw message