You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Vladimir Georgiev <Vl...@bioanalyte.com> on 2003/08/20 14:17:15 UTC
newbie troubles
Hi,
I just downloaded the source distro of Batik 1.5
I'm on Debian 3.0 and build.sh svgbrowser works fine.
The resulting batik works great.
I have the SVGApplication.java file (courtesy
of http://xml.apache.org/batik/javaScripting.html)
in the sources directory of batik, i.e. xml-batik/sources/
It compiles fine. I execute it with:
java -cp ../resources/:../lib/:. SVGApplication
And I get an SVG Error pop-up that says:
SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.io.IOException: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:379)
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:299)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:186)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactory.java:111)
at
org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:96)
at
org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:82)
I have a strong suspicion that there exists an easy fix for this that is
going to make me feel even more like a newbie,
but I will be very grateful to be made feel like that if the fix works.
Has anyone had this problem before?
Anyone know how to fix it?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: newbie troubles - Thank you Mr. DeWeese!
Posted by Vladimir Georgiev <Vl...@bioanalyte.com>.
It worked!
Ant is high on my list of things to look into.
Thanks again.
Thomas DeWeese wrote:
> Vladimir Georgiev wrote:
>
>> Hi,
>>
>> I just downloaded the source distro of Batik 1.5
>> I'm on Debian 3.0 and build.sh svgbrowser works fine.
>> The resulting batik works great.
>>
>> I have the SVGApplication.java file (courtesy
>> of http://xml.apache.org/batik/javaScripting.html)
>> in the sources directory of batik, i.e. xml-batik/sources/
>>
>> And I get an SVG Error pop-up that says:
>>
>> SAX2 driver class org.apache.xerces.parsers.SAXParser not found
>
> [...]
>
>> I have a strong suspicion that there exists an easy fix for this that
>> is going to make me feel even more like a newbie,
>> but I will be very grateful to be made feel like that if the fix works.
>
>
> > It compiles fine. I execute it with:
> >
> > java -cp ../resources/:../lib/:. SVGApplication
>
> You need to have the jar files in lib explicitly on the path.
> I've attached a small shell script you can run from the top level of
> batik
> and provide a class name and args. I would suggest getting
> comfortable with
> something like Ant or Eclipse as typing the java command line by hand is
> a mind boggling waste of time :)
>
> As a UNIX guy you will probably prefer Ant with it's text based
> config file
> (it's really simple and very powerful). However if you like IDE's
> eclipse can
> be nice.
>
>> Has anyone had this problem before?
>> Anyone know how to fix it?
>>
>> Thanks.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>
>------------------------------------------------------------------------
>
>#!/bin/sh
>
># OS specific support. $var _must_ be set to either true or false.
>cygwin=false;
>case "`uname`" in
> CYGWIN*) cygwin=true ;;
>esac
>
># Basic runtime path from class files.
>CP=lib/xml-apis.jar:lib/xerces_2_5_0.jar:lib/js.jar:classes:resources
>
>if $cygwin; then
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> CP=`cygpath --path --windows "$CP"`
>fi
>
>java -classpath $CP "$*"
>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org
>
Re: newbie troubles
Posted by Thomas DeWeese <Th...@Kodak.com>.
Vladimir Georgiev wrote:
> Hi,
>
> I just downloaded the source distro of Batik 1.5
> I'm on Debian 3.0 and build.sh svgbrowser works fine.
> The resulting batik works great.
>
> I have the SVGApplication.java file (courtesy
> of http://xml.apache.org/batik/javaScripting.html)
> in the sources directory of batik, i.e. xml-batik/sources/
>
> And I get an SVG Error pop-up that says:
>
> SAX2 driver class org.apache.xerces.parsers.SAXParser not found
[...]
> I have a strong suspicion that there exists an easy fix for this that is
> going to make me feel even more like a newbie,
> but I will be very grateful to be made feel like that if the fix works.
> It compiles fine. I execute it with:
>
> java -cp ../resources/:../lib/:. SVGApplication
You need to have the jar files in lib explicitly on the path.
I've attached a small shell script you can run from the top level of batik
and provide a class name and args. I would suggest getting comfortable with
something like Ant or Eclipse as typing the java command line by hand is
a mind boggling waste of time :)
As a UNIX guy you will probably prefer Ant with it's text based config file
(it's really simple and very powerful). However if you like IDE's eclipse can
be nice.
> Has anyone had this problem before?
> Anyone know how to fix it?
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>