---- Problem:

When trying to run the JSVGCanvas tutorial, I get errors, presumably because
Crimson is not in my path?  Compiles fine, even runs, just will not load any
files with the 'Open...' button.  Errors thrown are below.

I suspect this is because Crimson is not on my path.  Where do I find
Crimson, or is the tutorial simply out of date (like many of the tutorials I
have found on the web dealing with Java + SVG, including Sun's site)?  I
cannot find Crimson, as all references and sources I locate show Crimson is
now deprecated in favor of Xerces (which Xerces 1.6.0 -is- in my path in
Netbeans, it is loaded).

Any help or pointers?  Sorry if this is an FAQ, but the list FAQ doesn't
seem to give anything on this, and I cannot find the archives (not noted in
the List subscribe, info or faq replies).

Is it just because this tutorial is old?

---- Environment:

Windows 2000 SP4
SDK 1.4.2 (source)
Netbeans 3.5.1

---- Output window in Netbeans shows:

java.lang.ExceptionInInitializerError
        at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.getXMLParserClassNa
me(Unknown Source)
        at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgentWrapper.getXMLParser
ClassName(Unknown Source)
        at org.apache.batik.bridge.DocumentLoader.<init>(Unknown Source)
        at org.apache.batik.swing.svg.JSVGComponent$1.run(Unknown Source)
        at org.apache.batik.swing.svg.JSVGComponent.stopThenRun(Unknown
Source)
        at org.apache.batik.swing.svg.JSVGComponent.loadSVGDocument(Unknown
Source)
        at org.apache.batik.swing.JSVGCanvas.setURI(Unknown Source)
        at SVGApplication$2.actionPerformed(SVGApplication.java:67)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1839)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
20)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:245)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.util.MissingResourceException: Can't find bundle for base
name org.apache.batik.util.resources.XMLResourceDescriptor, locale en_US
        at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
        at org.apache.batik.util.XMLResourceDescriptor.<clinit>(Unknown
Source)
        ... 31 more



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to