Forest Extension - Not to be found?

Kelly O'Hair kelly.ohair at oracle.com
Mon Aug 1 05:41:01 UTC 2011


I generally get my own ant 1.7.1, install it, and put that one in my PATH and set ANT_HOME
to refer to it. It gets me much more predictable build behavior.

---
The basic ant launching issue is probably one of the most troublesome part of using ant in our build processes,
it is extremely hard to get predictable behavior over all our build platforms with ant.

-kto

On Jul 31, 2011, at 6:12 PM, Mario Torre wrote:

> 2011/7/28 Mario Torre <neugens at limasoftware.net>:
> 
>> I'll write down some proposal for the README files and propose them
>> here then. I will try to send you hopefully tomorrow a patch for the
>> Makefile as well.
> 
> I'm trying to build the JDK8 with a local JDK7 as a dependency, on
> Fedora 15, but I'm stuck at the very beginning:
> 
> make[2]: Entering directory
> `/home/neugens/work_space/netbeans/jdk8-build/langtools/make'
> JAVA_HOME=/home/neugens/work_space/netbeans/jdk7u/build/linux-amd64/j2sdk-image/
> ANT_OPTS=-Djava.io.tmpdir='/home/neugens/work_space/netbeans/jdk8-build/build/linux-amd64/langtools/build/ant-tmp'
> ant -diagnostics >
> /home/neugens/work_space/netbeans/jdk8-build/build/linux-amd64/langtools/build/ant-diagnostics.log
> ; \
>  JAVA_HOME=/home/neugens/work_space/netbeans/jdk7u/build/linux-amd64/j2sdk-image/
> ANT_OPTS=-Djava.io.tmpdir='/home/neugens/work_space/netbeans/jdk8-build/build/linux-amd64/langtools/build/ant-tmp'
> ant -version >>
> /home/neugens/work_space/netbeans/jdk8-build/build/linux-amd64/langtools/build/ant-diagnostics.log
> Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
> Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
> make[2]: *** [/home/neugens/work_space/netbeans/jdk8-build/build/linux-amd64/langtools/build/ant-diagnostics.log]
> Error 1
> make[2]: Leaving directory
> `/home/neugens/work_space/netbeans/jdk8-build/langtools/make'
> make[1]: *** [langtools-build] Error 2
> make[1]: Leaving directory `/home/neugens/work_space/netbeans/jdk8-build'
> make: *** [build_product_image] Error 2
> 
> Doing some debug it seems that the ant script launches at some point a
> script called "build-classpath", which tries to build the classpath
> and set it as an environment variable, but fails for some reason.
> 
> I can bypass this script but then the ant itself fails because it
> doesn't find the correct jars.
> 
> Now, I think this maybe a Fedora 15 bug, although those scripts do not
> seem to be completely tied to Fedora (that means this can be a bug
> affecting other distribution using the jpackage system that seems to
> be behind this build-classpath script).
> 
> It maybe that building the JDK using a boot JDK other than
> ALT_BOOTDIR=/usr/lib/jvm/java-openjdk doesn't work, at least of F15
> (which is not exactly the best Linux distribution around to be
> honest).
> 
> Does anybody here (Andrew, Mark?) have experienced similar issues?
> 
> I'm sure there is an easy way to set all this configuration stuff, but
> probably we need to tweak the makefiles to support that.
> 
> Cheers,
> Mario
> -- 
> pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
> Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF
> 
> Proud GNU Classpath developer: http://www.classpath.org/
> Read About us at: http://planet.classpath.org
> OpenJDK: http://openjdk.java.net/projects/caciocavallo/
> 
> Please, support open standards:
> http://endsoftpatents.org/




More information about the discuss mailing list