Class not found in signed applet

Hello

I am using a signed applet and am getting a class not found exception

this works fine when i run it in the IDE but get the exception when i try to load the applet from the web browser in the application.

java.lang.ClassNotFoundException: MyApplet

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)

at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)

at sun.applet.AppletPanel.run(AppletPanel.java:299)

at java.lang.Thread.run(Thread.java:534)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:265)

at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)

at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)

at java.security.AccessController.doPrivileged(Native Method)

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)

... 9 more

I have my applet code in the applet folder

here is my jsp call

<applet code="MyApplet" codebase="../applet" archive="SMyApplet.jar" width=400 height=400>

</applet>

here is my applet code

package applet;

import java.applet.*;

import java.awt.*;

public class MyApplet extends Applet

{

public void paint(Graphics g)

{

g.drawString("Generate Me",50, 50);

}

}

[1840 byte] By [Surendra_Varmaa] at [2007-11-26 15:17:31]
# 1
Review this tutorial and you should find the problem: http://java.sun.com/docs/books/tutorial/deployment/applet/html.html
ChuckBinga at 2007-7-8 10:58:43 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks for the info that helped.I figued out the problem the follwing did the trick<applet code="applet.MyApplet.class"codebase="." archive="SMyApplet.jar" width=400 height=400></applet>
Surendra_Varmaa at 2007-7-8 10:58:43 > top of Java-index,Desktop,Core GUI APIs...