HTML Page

The HTML page will only have a title and the applet. In the applet tag we need to specify the Jekejeke Prolog runtime as an archive. We need also to specify the applet component as an entry point and we can specify the dimension of the applet. Inside the begin tag and the end tag of the applet we can specify further HTML code. This HTML code is only rendered when the applet could not be loaded. In summary our applet tag looks as follows:

<applet
archive="interpreter.jar,hello.jar"
code="example03.Applet"
width="450"
height="390">
Applet could not be loaded.
</applet>

The full HTML page is found in the appendix. To run the HTML page we need to install a browser. Since the HTML page contains an applet tag, we need also to install a Java applet plugin. Most of the Java applet plugins that require a local JVM are since 2015 discontinued. An interesting alternative is CheerpJ which provides a Java applet plugin which does on the fly Java byte code to JavaScript translation.

Kommentare