I'm writing a plugin for jEdit that uses Batik to render SVG. It's mostly working now, except that I get errors when I try to render SVG that uses scripting. Specifically, when I render a file (such as batik-1.5/samples/3D.svg) that contains a tag like <script type="text/ecmascript"> I get the following error.
----------------------------------- java.util.MissingResourceException: Can't find bundle for base name org.apache.batik.bridge.resources.Messages, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694) at java.util.ResourceBundle.getBundle(ResourceBundle.java:538) at org.apache.batik.i18n.LocalizableSupport.getResourceBundle(Unknown Source) at org.apache.batik.i18n.LocalizableSupport.formatMessage(Unknown Source) at org.apache.batik.bridge.Messages.formatMessage(Unknown Source) at org.apache.batik.bridge.Messages.getMessage(Unknown Source) at org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(Unknown Source) at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source) at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source) ----------------------------------- What is happening here is perplexing. First off, the bundle org.apache.batik.bridge.resources.Messages is supplied by batik-bridge.jar via the file org/apache/batik/bridge/resources/Messages.properties This jar is being seen by jEdit as I have it configured, as is clear from the stack above. Basically when the <script> tag is hit, org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts asks for the message named "BaseScriptingEnvironment.constant.inline.script.description" from org.apache.batik.bridge.Messages which passes the request to an instance of org.apache.batik.i18n.LocalizableSupport (in batik-util.jar), which is constructed to use the bundle RESOURCES = "org.apache.batik.bridge.resources.Messages". When this tries to load the bundle, which is right there waving at me, it somehow forgets how to find things in the batik-bridge.jar we've already been using. Does anybody have any idea what might be happening to me? __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]