HTML and Classes belonging to a package
Hi everybody!
I am new to java, learning by myself...
i have created a class in the folder childfolder named MyClass.class (which does'n belong to any package)
I have my .html file in the parent folder of the childfolder.
so i write to this
<html>
<applet code="MyClass.class"
CODEBASE = "childfolder/"
width=600 height=500>
</applet>
</html>
and everything plays fine.
Now i want to make my class to belong to the package named childfolder (like the name of its directory).
I compile normally, but the html file does'n work anymore, even if i try to change the code like:
code="childfolder.MyClass.class" or
code="childfolder/MyClass" or
code="childfolder/MyClass.class" etc
Nothing worked in windows xp which I have (with firefox 7.0.1)
WHAT SOULD I WRITE THERE??
In ubuntu the command
code="childfolder/MyClass.class"
was working, but i want my applets to be used by others so windows are needed!!:(sweat):
thanks!!