Ah, I should have spotted that.  I use my own applet class and forgot that Main 
wasn't an applet.

Sorry Noel for leading you up the garden path :-)

John

> -----Original Message-----
> From: Cameron McCormack [mailto:[email protected]]
> Sent: Monday, 15 December 2008 14:38
> To: [email protected]
> Subject: Re: Running Squiggle as an applet.
> 
> Hi Noel.
> 
> Noel Whiting:
> > changed code as suggested to :
> >
> > <Html><head></head>
> > <body>
> > <applet code="org.apache.batik.apps.svgbrowser.Main"  height="100%"
> width="100%"
> >   archive="batik-squiggle.jar,batik-
> all.jar,xerces_2_5_0.jar,js.jar,xml-apis.jar,xml-apis-ext.jar,xalan-
> 2.6.0.jar">
> >  <param name="svgFile" value="s0000549.svg">
> > </applet>
> > </body></html>
> >
> > but still get 'load: class Main.class not found'.
> 
> The Squiggle main class, org.apache.batik.apps.svgbrowser.Main, is not
> a
> java.applet.Applet, and only classes that inherit from
> java.applet.Applet
> can be referenced in the @code attribute and run as applets.  You’ll
> need to write your own applet class that runs the Squiggle application
> or creates a JSVGCanvas in the applet, as appropriate for whatever
> you’re task is.
> 
> The applet demo on the website has an example:
> 
>   http://xmlgraphics.apache.org/batik/demo.html
> 
> The applet code is at:
> 
>   http://xmlgraphics.apache.org/batik/demo/AppletDemo.java
> 
> Cameron
> 
> --
> Cameron McCormack ≝ http://mcc.id.au/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: batik-users-
> [email protected]


Attachment: PGP.sig
Description: PGP signature

Reply via email to