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 Judah Diament <dj...@us.ibm.com> on 2004/02/09 17:50:36 UTC

batik as an eclipse plugin

I am trying to run batik as an eclipse plugin. I tried just dumping all of 
the jars into a plugin (see below), but when I go to open an SVG file I 
get the follong exception:

java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser 
not found
        at 
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
        at 
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
        at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)

Anyone know what's going on? Anyone already have a batik eclipse plugin?

thanks!
-Judah


<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
   id="batik"
   name="batik15 Plug-in"
   version="1.0.0"
   provider-name="">

   <runtime>
      <library name="batik-awt-util.jar">
         <export name="*"/>
      </library>
      <library name="batik-bridge.jar">
         <export name="*"/>
      </library>
      <library name="batik-css.jar">
         <export name="*"/>
      </library>
      <library name="batik-dom.jar">
         <export name="*"/>
      </library>
      <library name="batik-ext.jar">
         <export name="*"/>
      </library>
      <library name="batik-extension.jar">
         <export name="*"/>
      </library>
      <library name="batik-gui-util.jar">
         <export name="*"/>
      </library>
      <library name="batik-gvt.jar">
         <export name="*"/>
      </library>
      <library name="batik-parser.jar">
         <export name="*"/>
      </library>
      <library name="batik-script.jar">
         <export name="*"/>
      </library>
      <library name="batik-svg-dom.jar">
         <export name="*"/>
      </library>
      <library name="batik-svggen.jar">
         <export name="*"/>
      </library>
      <library name="batik-swing.jar">
         <export name="*"/>
      </library>
      <library name="batik-transcoder.jar">
         <export name="*"/>
      </library>
      <library name="batik-util.jar">
         <export name="*"/>
      </library>
      <library name="batik-xml.jar">
         <export name="*"/>
      </library>
      <library name="js.jar">
         <export name="*"/>
      </library>
      <library name="xerces_2_3_0.jar">
         <export name="*"/>
      </library>
      <library name="pdf-transcoder.jar">
         <export name="*"/>
      </library>
      <library name="xml-apis.jar">
         <export name="*"/>
      </library>
   </runtime>
</plugin>


Re: batik as an eclipse plugin

Posted by Tonny Kohar <to...@kiyut.com>.
Hi,

> java.io.IOException: SAX2 driver class
> org.apache.xerces.parsers.SAXParser not found
>         at
> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
> Source)
>         at
> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
> Source)
>         at
> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
> Source)

>       <libraryname="xerces_2_3_0.jar">
>          <exportname="*"/>
>       </library>

I do know much about Eclipse plugin, but looking at your message, I
think you need to change the line xerces_2_3_0.jar into xerces_2_5_0.jar
because Batik 1.5 use xerces 2.5.0

Regards
Tonny Kohar

-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com




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