Kaergaard Kasper ha scritto: > Hello All. > > I'm using geotools to show radar data on a simple map > with a background picture and a few other features. > Everything works fine, but in my build.xml I have an > ant task that uses pack.jar to pack my thirdparty jar > files so I only get the classes that I need. This is > to limit the size of a release. > When I run the ant task I get a class not found > exception > (org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation) > > when packing: > > org.geotools.renderer.lite.LabelCacheDefault, > > and > > org.geotools.renderer.style.SLDStyleFactory > > The strange thing is that > org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation > does not exist in the gt2-2.2.0-bin.zip which I > downloaded from the geotools site. > My code compiles and runs so I have just excluded the > two classes from the ant task, I'm not really happy > about this solution so I hope someone can help me come > up with a better one. > > To me it looks like a bug in the gt2-2.2.0 release > since the code in that release apparently calls > classes that are not included in the release. > Well, there's a tradeoff going on here. SVG icons are supported by Geotools using Batik, but the latter is a big library and we don't want people not using SVG depend on them. This means Batik dependencies are marked as optional, and aren't included in the release. You're safe as long as you don't use SVG icons in your app (if you spot any problem then it's a bug).
Cheers Andrea ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
