> If I open the file demo.html (contained in batik-1.7.zip\batik-1.7\docs\demo\)
> with Firefox the applet is not loaded correctly
> i.e. the chart stays blank, only the text boxes are displayed.

Correct. I've just confirmed this.


> Error (in the Firefox Java Console):
>  java.lang.NoClassDefFoundError: org/apache/batik/swing/JSVGCanvas
>        at java.lang.Class.getDeclaredConstructors0(Native Method)
>        at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
>        at java.lang.Class.getConstructor0(Unknown Source)
>
> Will I have to care about CLASSPATH settings (or JAR manifest files)?

Yes, it seems to be an error in the HTML file shipped in the
distribution. If you take a look at the online demo [1], which is
basically the same (it hasn't been updated lately as far as I know),
you'll see the HTML file properly refers to the needed JAR files:

<applet archive="batik-awt-util.jar, batik-bridge.jar, batik-css.jar,
batik-dom.jar, batik-ext.jar, batik-gvt.jar, batik-parser.jar,
batik-svg-dom.jar, batik-script.jar, batik-swing.jar, batik-util.jar,
batik-xml.jar, xml-apis-dom3.jar" code="AppletDemo.class"
codebase="demo/" height="300" mayscript="mayscript" width="400"
id="chart">
  [Your browser doesn&rsquo;t seem to support Java applets, which is
required for this demo.]
</applet>


Hope this helps,

 Helder Magalhães


[1] http://xmlgraphics.apache.org/batik/demo.html

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

Reply via email to