FAQ - Error List


 

Applet doesn't start

  Why doesn't the applet start?
The most common reason for this is that the browser can't find the applet or some file given in the parameters. Check the spelling and case of the file names.

Also check if you have got any error messages and check if you have got the codebase right (see further down).
 

  Java output

  How do I find the Java errors?
Sometimes you can see Java errors in the status bar of the browser when you move the mouse over the applet. But the best thing to do is to look at the Java output:
Netscape 2 and 3: Select Options->Show Java Console from the the menu.
Netscape 4: Select Communicator->Java Console from the menu.
Internet Explorer 3 and 4: Enable Java logging in the options and view the javalog.txt (found in the Java directory located in your windows directory)
 

Error messages

  Class not found (Explorer 3 and Netscape 2-4)
The browser is unable to find the .class file. Check the spelling and the case of the applet name and also check that you have got the codebase right (see further down in this FAQ)

If you are using Explorer 3 you may get this error if you have changed the filename of the class. This is not allowed.
 
    Class got a security violation (Netscape 2-4)
The browser is unable to find all the .class files needed. Make sure that you have copied them all to the same directory.
 
    java.lang.ClassFormatError or "Bad Magic Number" (Netscape 2-4)
The contents of the .class file has been altered or damaged. This can happen if you are using FTP in text mode. Get a fresh copy of the applets and the error should go away.

If you are using Netscape 4 you may get this error if you drag and drop html files to the browser in Windows 95. This is a bug in Netscape and if this happens you have to restart it and open the html page with File->Open Page.
 
   

java.lang.NoClassDefFoundError (Netscape 2-4)
The most common reason for this error is that the browser is unable to find the class file. Check filenames, directories and the codebase.

You will also get this error if you rename the class file. That is not allowed.
 

    Security Exception: checkread: <directory> does not include <directory> (Netscape 4)
For security reasons Netscape 4 doesn't allow an applet to access images that are located in a higher directory than the applet itself when the applets is run from a local hard disk. You have to move the images or the .class file.
 

Images don't load

  The applet seems to start but some images are not loaded.
The applet has started and it is trying to load the images needed but for some reason it can't. Check the spelling and case of the image file names. Also check that the images are in the correct directory.

If you are using Explorer 3.02 and the applets are located at the local hard disk the images will not load. This is a serious browser bug and there is no work around. Fortunately it will work if the applets are located on a web server or if you use any other version of Explorer.

If your web server doesn't have the right MIME type associated with .class files the images will sometimes not be loaded when using Explorer. Contact the web server administrator.
 
 

© 1997-2000 Entanke. Visit us at http://www.entanke.se/ for more information.