Trail: Deployment
Lesson: Applets
Section: Deploying Applets
Using the object Tag
Home Page > Deployment > Applets
Using the object Tag

You use the object tag to deploy applets that are to be used only with Internet Explorer.

For complete details on the object tag, read the W3 HTML specification.

Following is an example of the object tag:

  width="200" height="200">
  <PARAM name="code" value="Applet1.class">

The classid Attribute

The classid attribute identifies which version of Java Plug-in to use.

The example shown below is the most commonly used form of the classid attribute. This example instructs Internet Explorer to use the latest installed version of Java Plug-in.


Following is an alternative form of the classid attribute:


In this form, "xxxx", "yyyy", and "zzzz" are four-digit numbers that identify the specific version of Java Plug-in to be used.

For example, to use Java Plug-in version 1.6.0, you specify:


The codebase Attribute

You use the optional codebase attribute to specify the location to download JRE from in case it is not installed on the system.

The codebase attribute has two forms:

Following is an example of how to use the codebase attribute to set up automatic downloads from the Sun Java Web site:

  width="200" height="200"
  <param name="code" value="Applet1.class">

Note: In this example the codebase= ... line is broken for readability. In the actual HTML file it would be one long line.

Sun has packaged each version of the JRE installer in Microsoft cabinet (.cab) file format. You can view a list of these releases and the corresponding .cab file names.

Previous page: Using the applet Tag
Next page: Using the embed Tag