Contents:
How browsers look for class files
JDK 1.1 support
AppletViewer
HotJava
Netscape Communicator
Microsoft Internet Explorer
Applets don't have a CLASSPATH. CODEBASE can be used instead, but it is optional. All information needed to run an applet (except for the core language classes) must be found using the information inside the APPLET tag.
All the major browsers now are somewhat compliant with JDK 1.1. If, during your early JDK 1.1 development efforts, this is not widely the case, you can use the following tools and information to assist in viewing JDK 1.1 applets.
The information provided below is dated. Please visit the web sites of your favorite web browsers to see the current status of their support for JDK 1.1.
At the time of this writing,
For additional JDK 1.1 browser support information, see the JBuilder Developer Support FAQ "Current web browser - Java 1.1 status" http://www.borland.com/devsupport/jbuilder/qanda/1467.html.
The JavaSoft JDK 1.1 AppletViewer is integrated into JBuilder and used for running and debugging applets. It is fully JDK 1.1 compliant, of course. When you run or debug an applet in JBuilder, you are actually seeing its UI in AppletViewer. AppletViewer can also run stand-alone if you want to demo your applet separately from JBuilder and you do not have a JDK 1.1 compliant browser available.
AppletViewer supports multiple archives. The ARCHIVE tag needs to contain a quoted, comma separated list. The location of those files is determined by the other information in the HTML file. See Deploying JDK 1.1 applets as archives.
You can launch AppletViewer on the command line, pointing it at the HTML file containing the APPLET tag. If all your files are in the right locations, you simply need to change directories to the HTML file and run AppletViewer from there.
If this fails, you know immediately that some number of needed files are not where they need to be.
See the http://java.sun.com/products/jdk/1.0.2/tools/win32/appletviewer.html site for more information on AppletViewer.
HotJava 1.1.2, available from Sun, is an all-Java browser that is fully JDK 1.1 compliant. Note that Netscape and Sun have announced cooperation in creating an all-Java browser based on HotJava.
You can download the HotJava 1.1.2 browser binary free for individual, non-commercial use at http://java.sun.com/products/hotjava/1.1/index.html#download.
See the Sun web site at http://java.sun.com/products/hotjava/1.1/ for more information about HotJava 1.1.
Netscape has announced JDK1.1 support in an upcoming Communicator, and cooperation with Sun for using HotJava code in building a future all-Java browser.
See the Netscape web site at http://www.netscape.com for more information about Communicator.
You need to download Netscape's Final Release of the Windows 95 or NT JDK 1.1 support patch support patch to make Netscape 4.04 JDK 1.1 enabled. Communicator 4.04 is still not fully JDK 1.1 compliant. Netscape, so far, has only provided this patch for the Windows NT and Windows 95 platforms. This patch is currently not available for Unix.
With the release of Communicator 4.04, Netscape was able to support a large subset of the JDK 1.1. Additional JDK functionality provided by this patch includes: JNI (Win32) AWT 1.1 New Event Model JavaBeans Support Printing Support for Applets
For more information, see
IE4 also supports CAB archives (cabinet files). Use the CABBASE tag to refer to all .cab files used by your applet. Since support of CAB archives is a Microsoft specific enhancement, other browsers will not recognize the CABBASE tag. To ensure users using browsers other than IE4 can run your applets, you must also have either JAR or ZIP archives containing the same files as the CAB archive. These .jar and .zip files must be referenced using the ARCHIVE tag.
If you're having problems deploying any archive (CAB, ZIP, or JAR), expand the archive onto the local system to see if that clears things up.
See the following web pages at Microsoft for more information on CAB files:
http://www.microsoft.com/visualj/techmat/feature/speed/speed.htm
http://www.microsoft.com/java/sdk/20/tools/cabarc.htm
http://www.microsoft.com/java/sdk/151/tools/tools007.htm
http://www.microsoft.com/ie/ieak/cab.htm
There may be other run time differences, so test your applet on each browser your users will use.
See Microsoft's web site at http://www.microsoft.com for more information on Internet Explorer.