I'm still somewhat befuddled by the source of the build error, but after much
research (and a Linux distro change and the rebuilding that goes with that -
don't ask) I added the following line and change to the stock build.xml file
(new first line, and change in the third line below which was line 22 in the
original version):
<property environment = "env" />
<path id="classpath.javalib">
<fileset dir="${env.SDK_HOME}/lib" includes="**/*.jar"/>
</path>
The original line 22 (replaced by the third line above):
<fileset dir="${java.home}/lib" includes="**/*.jar"/>
With those minor modifications I was able to complete a build of 2.1. I still
see the same report from the .xml file:
environment-info:
[echo]
[echo] Compile environment for pivot-2.1.0 is:
[echo] show deprecation true
[echo] debug true
[echo] source 1.6, target 1.6
[echo] encoding UTF-8
[echo] indexJars true
[echo] arg -Xlint
[echo]
[echo] Java environment: home at
'/home/greg/Programming/Java/jdk1.7.0x64/jre', version 1.7.0_07
[echo]
I haven't tested the resulting build yet, but I'm anxious to and then continue
with my project.
Thanks again, for your help.
On Friday, September 14, 2012 04:41:43 PM you wrote:
> Sandro/All,
>
> I see the output that troubles you,
>
> [echo] Java environment: home at
> '/home/greg/Programming/Java/jdk1.7.0x64/jre', version 1.7.0_07
>
> but JAVA_HOME = /home/greg/Programming/Java/jdk1.7.0x64
>
> In fact, the onlly env variable I had pointing to the JRE is JRE_HOME, and I
> pointed that to JAVA_HOME with no effect.
>
> I'm not a whiz with XML files and don't understand how ${java.home} is set.
> Apparently you thought it came from JAVA_HOME, but that doesn't seem to be
> true for me. I've been through the other .xml files that I think have
> anything to do with the build process, and I can't find the source of the
> incorrect setting.
>
> My OS is Linux, by the way. I'll keep fiddling with it, trying to get
> java.home set correctly, and will let you know if I make progress.
>
> Thanks for your help so far.
>