Preparing an Applet
The applet should be run through javac compiler getting a .class file as before: javac MyApplet.java
The resulting file MyApplet.class is then stored in the document collection of a web server (hence has a URL location).
Also create an HTML file (say MyApplet.html) with an applet tag to MyApplet.class.
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.