Thanks a lot Helder for your quick and helpful answer! Now it works, the chart is displayed and responds.
I replaced the 2 jar files in demo.html with the jar files from your mail. <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" ...the other stuff unchanged Regards Michael -------- Original-Nachricht -------- > Datum: Wed, 3 Dec 2008 10:45:02 +0000 > Von: "Helder Magalhães" <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: Batik demo.html does not display chart > > 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’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] -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
