Running It
-
- javac filename
filename.java is the source file
filename should be the same as the class defined in the file
creates filename.class
-
- for class named Applet1
<HTML>
<HEAD>
<TITLE>Applet HTML</TITLE>
</HEAD>
<BODY bgcolor="#ffffff">
<APPLET CODE="Applet1.class" archive="simulate.jar" WIDTH=640 HEIGHT=350></APPLET>
</BODY>
</HTML>
- need to reference simulate.jar, which contains simulation classes