Tarantella and Java™ archives

Tarantella uses Java applets for a variety of purposes. These Java applets must be downloaded from the Tarantella server to the client device's web browser.

The files that make up each applet can be combined into a Java archive. Java archives are useful because:

Web browsers can keep local copies of Java archives either by caching them, or locally installing them:

The Java archives in Tarantella work correctly with all supported browsers. However, some browsers have settings which can disable support for Java archives. If you have changed a particular browser's configuration, the browser may be unable to cache or install Java archives. You can always re-enable Java archive support by returning the browser to its default configuration.

Web browsers and archive types

Tarantella provides several types of Java archive, as different web browsers support different types of archive. Tarantella uses the mappings in the install_dir/etc/data/archives.txt file to control which archive types are used with which browsers.

The table below shows:

SettingArchive typeCompressionLocal copySigned
cabMicrosoft cabinet filesCompressedCachedSigned
cab4Microsoft distribution unitsCompressedInstalledSigned
jpsjarArchives signed using the Sun JDK™ suitable for Sun's Java Plug-inCompressedCachedSigned
nsjarNetscape signed installable Java archivesCompressedInstalledSigned
sjarNetscape signed non-installable Java archives CompressedCachedSigned
zipZip archivesUncompressedCachedNot signed

Note Netscape signed Java archives can be used with non-Netscape browsers.

By default, Tarantella uses these settings for the following browsers:

Browser/platformSetting
Microsoft Internet Explorer 5 on Windowscab4
Microsoft Internet Explorer 6 on Windows using the Microsoft Virtual Machinecab4
Microsoft Internet Explorer 6 on Windows using the Sun Java Plug-Injpsjar
Microsoft Internet Explorer on Apple Mac OS X 10.2+jpsjar
Netscape 6.x and 7.xjpsjar

Note The cab4 setting used by default for Internet Explorer users on Windows means that the archive is installed locally. However, the ability to install archives locally requires Administrator privileges. If Tarantella detects that the user does not have these privileges, it will automatically use the cab archive type instead as this is cached rather than installed.

Customizing which browsers receive which archives

If the archive types used by default are unsuitable, you can edit the install_dir/etc/data/archives.txt file to change which archive types users receive. The file contains comments to help you customize archive delivery.

If you only need to temporarily override the settings in the archives.txt file so that you use a different Java archive, you can do this by running the Tarantella CGI program ttaarchives.cgi with a query string. This program sets a cookie which overrides archives.txt. For example, using the URL http://server/tarantella/cgi-bin/ttaarchives.cgi?cab sets your session to use the Microsoft cabinet archive. The cookie lasts for as long as you have your web browser running. The cookie is deleted when you close the web browser.

You can find full details on the query string settings available for ttaarchives.cgi by running:

http://server/tarantella/cgi-bin/ttaarchives.cgi?

User prompts

When a web browser caches or installs a Java archive, the user is usually prompted for permission to cache/install the archive. For the archive to be cached/installed, the user must grant permission.

Related topics
  • Which clients are supported?
  • How does Tarantella use applets?