Hi all, i'm pretty new to java applets and been struggling to embed it into a webpage. I made a java applet using eclipse, and ran it using eclipse's applet viewer just fine. However i cannot embed it into my webpage.
I placed the jar file i exported from the project into the same location with this html file, and in the html file, i put the following code
<html>
<applet code="RectanglesMover.class" archive="BinPacking.jar" width="500" height="500">
<p>
Sorry, you need a Java-enabled browser to run this applet.
</p>
</applet>
</html>
I checked the names correctly entered but keep getting the Class not found message. I checked the jar file too and saw the applet file there already.