Paul,
There's no inherent problem with running Ant on MacOS X PB - we've been using it
solidly for the last six months or more (e.g. pre - PB as well!).
Which version are you running - is it a recent CVS version or a full release like 1.2?
Stuart.
On Thursday, January 18, 2001, at 08:22 AM, Paul Scott wrote:
> after reading the mailing list archives, I think my problem is the class loader.
> here's the stack trace from the crash:
>
> BUILD FAILED
>
> No JAXP compliant XML parser found. See http://java.sun.com/xml for the
> reference implementation.
> java.lang.NoClassDefFoundError: org/apache/tools/ant/UnknownElement
> at
>
>org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java:373)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> at com.sun.xml.parser.Parser.parse(Parser.java:284)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
> at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:104)
> at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
> at org.apache.tools.ant.Main.runBuild(Main.java:402)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 43 seconds
>
> this is typical. I tried the "move jaxp.jar and parser.jar to $JAVA_HOME/lib/ext"
>but
> that did not fly. anyway, it looks like they load, if the trace includes
> com.sun.xml.parser.Parser .
>
> actually, I just now examined the ant.jar jarfile, and it seems to be corrupt, as my
> jarfile browser hangs when I go to the UnknownElement class.
>
> I'll look into this. it could be a decompression problem.
>
>
>
>
> On Wednesday, January 17, 2001, at 10:40 PM, Paul Scott wrote:
>
> > I've been trying to get ant to work on MacOS X, but I cannot seem to get it
>working.
> >
> > I've got it installed in /usr/local/ant, and $ANT_HOME is set to the same.
> >
> > the classpath is set to
> >
> >
> /usr/local/ant/lib/ant.jar:/usr/local/ant/lib/jaxp.jar:/usr/local/ant/lib/parser.jar
>
> >
> > It complains that I do not have a JAXP compliant xml parser.
> > It then complains it cannot find the class org/apache/tools/ant/UnknownElement and
>
> > crashes with that exception.
> >
> > java -version gives me
> > java version "1.2.2"
> > Java HotSpot(TM) Client VM (1.3.0, mixed mode, internal release build)
> >
> > what am I doing wrong? I'd really like to get this thing working, as there are
>several java
> > projects that build using ant.
> >
>
>
-------------------------------------------------------------------------
Stuart Roebuck [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS http://www.adolos.com/