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/21 09:00:04 UTC

Re: newbie troubles - Thank you Mr. DeWeese!

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
>