I made a simple applet game of pong, but when I try to acces it via html and different browser it says: ClassNotFoundException. I tried a simplier code and got the same message. There in one folder and there I have the files- Main.java and shit.html. Here is the code:
package GAME; import java.applet.*; import java.awt.*; public class Main extends Applet{ public void paint(Graphics g){ g.drawString("Help! I need somebody! Help!",40,20); } }
and the html
HTML Code:<HTML> <HEAD> </HEAD> <BODY> <div > <APPLET CODE="Main.class" WIDTH="800" HEIGHT="500"> </APPLET> </div> </BODY> </HTML>