How do I install a Java applet with a jar archive file into Lotus Notes?

The applet code for the example given here is:

<applet code="experiments.CardExperiment.class" archive="CardExperiment.jar"
width="500" height="350" codebase=""></applet>

Note: the class name is "CardExperiment.class", but will need to be changed to "experiments.CardExperiment.class" before the "CardExperiment.jar" file will operate correctly.

Download the Java applet jar file, "CardExperiment.jar", to your desktop.  Record the applet parameters for height and width.  If there are additional  parameters the directions that follow may have to be modified.  For this example the

Place your cursor in the position you wish the applet to appear.  Select "Java Applet" from the "Create" menu.

applet_class1.gif (11340 bytes)

Click on the folder to the right, then select "Java Archives (*.jar)" from the "Files of type:" pull down menu.

applet_jar1.gif (21882 bytes)

Select the appropriate jar file.

applet_jar2.gif (18840 bytes)

The class file name will be added automatically.  In this example "experiments." needs to be added to the file name as discussed a the beginning of this file. This step will not be necessary, if the class file name has not been altered.  Click "Locate" to navigate to the appropriate jar file.

applet_jar3.gif (43703 bytes)

Select the appropriate jar file, then click "Add/Replace File(s)".   Click "OK" when you return to the screen shown above.

applet_jar4.gif (38812 bytes)

To change the width and height parameters in Lotus Notes 5.0, place your cursor immediately to the right of the applet you inserted.  Click the backspace button once.  If the properties screen does not pop up, choose "Java Applet Properties" from the "Java Applet" menu.

applet_class3.gif (7775 bytes)

Change to the appropriate height and width parameters on the "Java Applet Properties" screen.

applet_jar5.gif (25514 bytes)

The applet should be functional.

Hit Counter visitors since April 13, 2002