Hi,

I am trying to make an applet accessible through a JSP, but it won't load, I have the following error in my browser's Java console:

java.lang.ClassFormatError: Incompatible magic value 1013461310 in class file MyApplet

...

The applet is in the same directory of the JSP that calls it wich is the root of the project. Here's the code in the JSP:
Code:

<jsp: plugin type="applet" codebase="." code="MyApplet.class" width="408" height="410" >
<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.
</jsp:fallback>
</jsp: plugin>


There are no preblems when I call the applet from a usual html file with the applet tag.

What am I doing wrong?