xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helder Magalhães" <helder.magalh...@gmail.com>
Subject Re: Cannot build rasterizertask
Date Sun, 23 Nov 2008 21:04:50 GMT
>        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
>        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
>        ... 6 more

Again, this is somehow weird. It suggests that Batik is using the
Crimson XML parser instead of Xerces. As far as I know, Crimson isn't
sufficient for Batik's XML parsing needs, and is only shipped because
it's required by Ant (please correct me if I'm wrong!). Xerces and
other required libraries are expected in "lib" directory and seem to
be referred to within "build.xml":

  <fileset dir="lib">
    <include name="xalan*.jar"/>
    <include name="xerces*.jar"/>
    <include name="xml-apis.jar"/>
    <include name="xml-apis-ext.jar"/>

> Ant since you're probably going to quote the ant version thing again, here's the command
it executed:

Sorry, didn't meant to be annoying but I was betting on the different
Ant versions to explain your issues. ;-)

> "C:\Progra~1\Java\jdk1.6.0_10"\bin\java.exe  -classpath "C:\Progra~1\Java\jdk1.6
> .0_10"\lib\tools.jar;.\lib\build\ant-1.6.5.jar;.\lib\build\ant-launcher-1.6.5.ja
> r;.\lib\build\crimson-1.1.3.jar org.apache.tools.ant.Main -emacs -Dant.home=. sq
> uiggle -Dargs="       "
> So you can see that it is using 1.6.5 (I even uninstalled my other ant version)
> I didn't even get to specify which image to load, the error seems to be with batik
> itself not liking my computer or simple build commands or what have you.

OK, this matches my own, and I don't have any problems building
Squiggle. I can also see that you are using JDK 1.6.0 update 10, which
also matches my current Java environment.

> Any tips on how to fix it now? If you need any other information, I'd be more than happy
> to share if it helps fix this :-)

See above... My current guess goes to a corrupted Batik environment -
please consider checking out a fresh copy of the repository [1] (and,
of course, re-applying the patch already referred [2] afterward).

Note that I've encountered a small issue which, although highly
related, doesn't seem to be causing any of the errors you are facing.
But, for the record (and before you bump into it): if you use the same
console for "build compile" Batik and then "build compile" the
Rasterizer task (by changing directory, such as in "cd
contrib\rasterizertask") or the way around, you will get an
Ant-related error: the build script automatically computes "ANT_HOME"
if not already present but doesn't clear the variable afteward. To
workaround this, simply use a separate console for building Batik and
the Rasterizer task. (I've already added this one into my TODO stack,
to be deal with whenever time permits...)

Hope this helps, :-)

 Helder Magalhães

[1] http://xmlgraphics.apache.org/batik/download.cgi#Subversion+repository
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=46227

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message