For the applet to work, the browser really needs to be compatible with Java. The applet code is replaced in the system, then the browser’s Java Virtual Machine (JVM) executes the code and displays the result. An applet is a special type of application that is part of an HTML page and can be stored on a web page and run in a sophisticated web browser.
This will help you test the applet before running it in the browser. Applet is an Observer command-line utility for running Java applets.