On Tuesday, September 17, 2002, at 07:50 , Tom Lane wrote:
> Joel Rodrigues <borgempath@Phreaker.net> writes:
>> checking whether /usr/local/ant/bin/ant works... no
>> configure: error: ant does not work
>
> Look in config.log to get more info about the problem. I've
> seen some reports indicating that you must have JAVA_HOME set
> to get ant to behave properly.
>
> regards, tom lane
>
Hi Stuart, Tom, thanks for the input !
Here's the relevant bit from config.log:
configure:1916: checking whether /usr/local/ant/bin/ant works
configure:1939: /usr/local/ant/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml
BUILD FAILED
Unable to load default ProjectHelper due to
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Total time: 5 seconds
configure: failed java program was:
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
configure: failed build file was:
<project name="conftest" default="conftest">
<target name="conftest">
<javac srcdir="." includes="conftest.java">
</javac>
</target>
I just looked in /Library/Java/Home, and there are 2 aliases,
"doc" & "include", which lead nowhere, i.e. "the original item
could not be found". Is that normal ?
I have these set:
JAVA_HOME=/Library/Java/Home
ANT_HOME=/usr/local/ant
Cheers,
Joel