On 2012-02-04, glenn opdycke-hansen wrote: > I am using ant on redhat environment.
You have probably installed Ant from an RPM rather than an Apache distribution, right? If so, it is quite possible the wrapper shell script is different from the one we have written. > There are multiple Java jdk installs on the system. I just requested > that ibm jdk 1.6 sr10 be installed. > The build script in ant 1.6.5 is getting the same error message as > before the sr10 jdk was installed. > Also ant -diagnostics is reporting the old (sr9) jdk. > The java home and path env settings have been changed to use the sr10 > jdk, but that does not help. "Stock Ant" will use JAVA_HOME and fall back to PATH if JAVA_HOME is absent. At least most of the time. There is some special handling in the wrapper script that reads in /etc/ant.conf if ANT_HOME is not set or is set to /usr/share/ant. This could be altering your environment, in particular it could enable the so-called rpm-mode which takes a different approach to locating the JDK (it uses /usr/share/java-utils/java-functions and I don't have any idea what this uses to locate the JDK). > Is there some suggestions for getting ant to use the sr10 jdk? You can run "ant --noconfig" which disables rpm-mode but also prevents Ant from reading ~/.ant/ant.conf and ~/.antrc - but first you may want to verify the ant shell script is the same as the one you'd get from the ASF - otherwise there is little we can do to help. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org