Hi all
I am posting this query again as I am getting desperate to find out the correct approach for enabling applet display on Lenya pages.
Thanks in advance.
Regards
Shishir
[EMAIL PROTECTED] wrote on 09/08/2005 08:26:23 PM:
>
> Hi all,
>
> I tried implementing applets as we do it in Apache Cocoon by
> specifying the ResourceReader and mapping the class as:
> <map:match pattern="*.class">
> <map:read mime-type="application/x-java-class" src=""
> </map:match>
>
> But, I am receiving the following error:
> java.lang.ClassFormatError: HelloWorld (Bad magic number)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at sun.applet.AppletClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.applet.AppletClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.applet.AppletClassLoader.loadCode(Unknown Source)
> at sun.applet.AppletPanel.createApplet(Unknown Source)
> at sun.plugin.AppletViewer.createApplet(Unknown Source)
> at sun.applet.AppletPanel.runLoader(Unknown Source)
> at sun.applet.AppletPanel.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> I would be obliged if I get reply to this problem.
>
> Thanks in advance.
>
>
> Regards
>
> Shishir
>
>
> [EMAIL PROTECTED]
> 09/08/2005 05:04 PM
>
> Please respond to
> [email protected]
>
> To
>
> [email protected]
>
> cc
>
> Subject
>
> Using Java Applets with Lenya
>
>
>
>
>
> Hi all
>
> Has anybody tried integrating Java Applets(preferrably Java Swing)
> with Lenya or if anybody can throw some light on using the applets in Lenya?
>
> Thanks in advance.
>
> Shishir
>
| Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you |
