Including Java applets in applications

Applets are self-contained Java™ programs that can run in your Domino® application. Java applets are often used to add animation to Web applications. Although Java applets are mostly used for Web applications, you can also include them in the following elements of a Domino application:

  • Form -- The applet is included in each document created with that form.
  • Document -- The applet is available only in the document.
  • Page -- The applet is available only in the page.

A Java applet usually consists of a collection of files, with one file that contains the main class, or the starting point for the applet. There can also be image files, archive files, and Java source files. You can store Java applet files as follows:

  • When you import an applet, the files are attached as hidden files to the form, document, or page where you include the Java applet.
  • When you link to an applet, files are stored on the Web and a URL reference to those files is stored in the form, document, or page where you include the Java applet.
  • When you set up shared applet resources, the files are stored in the database where you include the Java applets that use those files.

Requirements and restrictions for Java applets

  • Java applets are supported for most releases of Internet Explorer 4.x and 5.x and Netscape Navigator 4.x. Browser support is platform dependent. For the latest information on supported browsers, see the topic "Supported Web browsers" in the Release Notes®.
  • Java applets created with Notes 4.6 and later will not work with previous releases of Notes, unless the applet is stored on the Web and it has no parameters.
  • Notes 6.0 and later support Java Virtual Machine (JVM) version 1.3.
  • Any standalone Java applet that uses the Domino Objects (back-end classes) must run under the same JVM version as was used to create the back-end class library (lsxbe). For example, if a standalone Java applet is using lsxbe.so from Domino version 6, which uses JVM 1.3.1, then the standalone applet must also be run using JVM 1.3.1. Any other configuration is not supported.