Hi John. John C. Turnbull: > Here's the complete exception: > > java.lang.Exception: Unknown language: text/ecmascript > at > org.apache.batik.bridge.BridgeContext.getInterpreter(BridgeContext.java:575) > at > org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(BaseScriptingEnvironment.java:320) > at > org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(BaseScriptingEnvironment.java:316) > at > org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(BaseScriptingEnvironment.java:639) > at > org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoad(BaseScriptingEnvironment.java:612) > at > org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent(BaseScriptingEnvironment.java:599) > at > org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:239) > at > org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(UpdateManager.java:220) > at > org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(SVGLoadEventDispatcher.java:100) > > I see that InterpreterPool has a method putInterpreterFactory() but > according to NetBeans "Find Usages" it's never being called in the > source the way I have it set up.
The factories are added in the static code block in InterpreterPool, and the factories themselves are discovered via a service provider interface. The file that specifies the factories to create is resources/META-INF/services/org.apache.batik.script.InterpreterFactory. You’ll need to ensure that resources/ directory is available on the classpath so that it can be found by the code in that static block. -- Cameron McCormack ≝ http://mcc.id.au/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]