This chapter describes the most common problems using the TOC applet
and how you can solve them.
- error:java.lang.ClassFormatError
When you upload the TOC applet to your homepage, make sure that
- you uploaded all the files (TOC*.class)
- you uploaded the files with their long filenames
- you have the correct spelling (capital and small letters are important in Java)
- you have uploaded the files BINARY (not (!) ASCII)
- TOC text not ok / Script parameters not recognized
In this case, check in the script file that
- the parameter names are correct
- the keyword and all parameters are in one line
- the text parameter is the last parameter in the line
- The applet does not recognize when you link to another content page
You need to add the following code to each of you content pages so that
the TOC applet can automatically change to the selected content page
<applet code="TOCPage" width=0 height=0>
<param name="url" value="yourFile.html">
</applet>
where the document must be specified relative to the directory
containing the .class files.
The following code must be added to the document containing the TOC applet
<applet code="TOCSelectItem" width=0 height=0>
</applet>
If you use Netscape 3.01, all HTML files must be in the same directory.
Netscape 4.0 and MS IE 3.02 work correctly also with subdirectories.