If it isn't already present on your system, you can download it from Sun's website at. The Plug-in is included in the Java 2 Runtime Environment, an interpreter for running Java Programs that is installed along with the Java Development Kit. The Java Plug-in from Sun can be used to run a Java applet in a browser in place of the browser's Java interpreter.
Support for the language is available as a browser plug-in from Sun Microsystems. The current versions of Mozilla, Netscape Navigator, and Microsoft Internet Explorer do not offer built-in support for Java applets. If you want to see how the applet is laid out in relation to the other contents of the document, you must use a Java-capable web browser. Unlike a web browser, appletviewer cannot be used to view the HTML document itself. The size of these windows depends on the HEIGHT and WIDTH attributes that were set in the applet's HTML tag. When an HTML document is loaded by appletviewer, every applet on that document will begin running in its own window. Viewing Java web applets outside of a browser. For example:įigure B.1 displays an applet loaded from this page, a site developed by cartoonist and Java game programmer Karl Hörnell.įigure B.1. If the argument is a web address instead of a reference to a file, appletviewer will load the HTML document at that address. It takes an HTML document as a command-line argument, as in the following example: The appletviewer tool runs Java programs that require a web browser and are presented as part of an HTML document.