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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



#!/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to