1 | The applet should be run through javac compiler getting a .class file as before: javac MyApplet.java |
2 | The resulting file MyApplet.class is then stored in the document collection of a web server (hence has a URL location). |
3 | Also create an HTML file (say MyApplet.html) with an applet tag to MyApplet.class. |
4 | When the browser loads the .html file, it will also download the .class file and invoke the java interpreter to run the init, start, and paint methods. |