Problem when running an applet !!!
hello
iam follow the tutorial for applet here http://java.sun.com/docs/books/tutorial/deployment/applet/getStarted.html
when iam try to run the code :
import javax.swing.JApplet;
import java.awt.Graphics;
publicclass HelloWorldextends JApplet{
publicvoid paint(Graphics g){
g.drawRect(0, 0,
getSize().width - 1,
getSize().height - 1);
g.drawString("Hello world!", 5, 15);
}
}
the appletviewer appear but empty and these error listed at bottom
java.lang.ClassNotFoundException: javaapplication22.Main.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
iam using netbeans 5.5 beta , what's the wrong ?
thanks advance

