Using Java, All I get is a gray box. Why?
First off, check to see that you've uploaded and/or copied the required class files (see where do i get the class file?) to the same directory as the page containing your applet. If you have, it's possible that the file may have become truncated. Try recopying or reuploading (make sure you use BINARY), then refreshing your page view. If it still doesn't work, the applet may be "stuck" in your browser's cache. To clear your cache, please use the following instructions:
If you are using Netscape:
- Go to Edit > Preferences > Advanced > Cache and click "Clear Memory Cache" and "Clear Disk Cache". Also check to see that "Document in cache is compared to document on network:" is set to "Every Time". Click OK to accept the changes, and restart Netscape before viewing your page again.
If you are using Internet Explorer:
- Go to View > Internet Options (or Tools > Internet Options for IE5), and look on the General tab under "Temporary Internet Files". Click "Delete files". Next, click the "Settings" button, and make sure that "check for newer versions of stored documents" is set to "Every visit to the page". Click Apply, then restart IE before viewing your page again.
Applet can't start: exception java.lang.NullPointerException
This means that there is an extra or missing space somewhere in your applet code. All you need to do to fix this error is to re-paste your applet code into the page, then re-upload and refresh the page in your browser.
Applet can't start: exception java.lang.NumberFormatException
- This means that one or more of the values in your applet code are not agreeing with each other. To fix this error, simply re-paste the applet code into your page, then re-upload and refresh the page in your browser.
Applet can't start: exception java.util.NosuchElementException
- This error indicates an inconsistency between your applet code and the files on the server. Try re-pasting the applet code into your page, and re-uploading all neccessary files - checking to see that the class file(s) and any image files are uploaded in BINARY mode. Once this is done, you may refresh the page in your browser to view the applet.
Applet can't start: class (something) not found
- This error is given when the browser cannot locate one or more of the class files neccessary to run your applet. This can be caused by a truncated class file, but is usually caused by a class file being placed in the wrong directory. Re-upload your class file (in BINARY mode) to the same directory as the page containing your applet, then refresh the page in your browser.
If you can't upload to the same directory, or need to place the applet in a different directory for any reason, you should use the CODEBASE attribute in your applet code.
This can be placed as follows:
<APPLET CODE="joybutton.class" CODEBASE="/path/to/thefile/" HEIGHT="200" WIDTH="50">
* You do not need to include the name of the class file in the CODEBASE attribute
If you are using CODEBASE, and you still receive the "class not found" error, try removing the CODEBASE attribute from your code.
Applet can't start: error java.lang.ClassFormatError
- The most likely cause of this error is a corrupt or truncated class file. Try re-uploading your class file to the server, and make sure that it's transferred in binary mode. If your FTP or upload client includes transfer mode selection (other than automatic), you might want to lock it to binary before uploading your class file, just to ensure a proper transfer. If not, delete the file from the server (if possible with your client), and then re-upload.
You are using an unregistered version ..."
- This means that the applet code on your page was pasted in using an unregistered version of your Java applet program. You will have to register the program before you can post it to a web page.
Password Wizard Help Index |
Password Wizard Homepage