>>>>> "CW" == Claire WALL <[EMAIL PROTECTED]> writes:

CW> Hi, I have successfully managed to import an SVG graphic/file into
CW> an application but when trying to import an SVG graphic into an
CW> applet I am having some problems.

CW> Here�s the code for my applet:

    [...]

CW> When I run the corresponding HTML page (with the applet embedded
CW> using the <APPLET> tags) I get this error:

CW> java.lang.NoClassDefFoundError: org/apache/batik/swing/JSVGCanvas

    Looks like you didn't setup your applet tag to reference the Batik
Jar files.

CW> I had no problems getting the SVG graphic to view in the
CW> application (server was running but the application was run from
CW> the command line). However, when I run the above code on Tomcat it
CW> causes the above error. Any ideas? How do you get the SVG file to
CW> work in an applet running on Tomcat? Any help would be great.

    Hmm, sounds like some confusion here, Applet's run in the clients
Browser, Tomcat is a Servlet container that runs on the server.
Perhaps Tomcat is generating the SVG that is being rendered in an
applet on the client.  So perhaps you setup the classpath for Tomcat
properly but forgot the classpath/archive/whatever attributes on the
applet tag.


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

Reply via email to