|
Re: package BUG !! ??
|
Posted: Jan 15, 2003 2:48 PM
|
|
Since you have placed your class for applet in a package you need to set the CODEBASE attribute of applet tag in html. Browser has to find the class. By default the value of codebase is ".", which means the current directory from where html file is loaded. So, if you create te package folder setup just beneath the folder where you have stored your HTML file then it will work fine. Alternatively, just set the CODEBASE attribute and place your package folder hierarchy and class file accordingly.
If it doens't fix the problem then read more about CODEBASE attribute. Also, you may just first try to keep class file and html in the same folder and remove package declaration from your class and see if it is running.
Thanks KIshori
|
|