changeset 902:f31bb772c0e3

Added section about problems with pre-installed ANT and our bootstrap JDK on Linux and how to solve them
author simonis
date Mon, 07 Jan 2013 15:36:52 +0100
parents ef45d0d7216c
children c7cb78c7f1a7
files README-ppc.html
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README-ppc.html	Mon Dec 17 19:26:22 2012 +0100
+++ b/README-ppc.html	Mon Jan 07 15:36:52 2013 +0100
@@ -312,6 +312,30 @@
 project page</a> you can find the build logs of our regular nightly makes.
 </p>
 
+<h4>Problems with pre-installed ANT on newer Linux distros</h4>
+
+<p>
+Notice that pre-installed ANT version (i.e. ANT versions installed with the
+corresponding system package manager) may cause problems in conjunction with
+our bootstrap JDK. This is because they use various scripts from the
+<a href="http://www.jpackage.org/">jpackage</a> project to locate specific Java
+libraries and jar files. These scripts (in particular 
+<code>set_jvm_dirs()</code>
+in <code>/usr/share/java-utils/java-functions</code>) expect that executing
+"<code>java -fullversion</code>" will return a string starting with "java" but
+our OpenJDK port returns a string starting with "openjdk" instead.
+</p>
+
+<p>
+The problem can be easily solved by either editing the regular expressions
+which parse the version string
+in <code>/usr/share/java-utils/java-functions</code> (or the respective file of
+your Linux distribution) or by installing a plain version of ANT
+from <a href="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</a>
+and passing its installation directory to the build via
+the <code>ANT_HOME</code> environment variable.
+</p>
+ 
 <h3>Building with the IBM JDK for Linux/PPC64 as bootstrap JDK</h3>
 
 <p>