I was wondering if someone could provide me with some background of how exactly the codebase and code tags work when running a java applet.
My problem is this: I have a java applet which comprises of multiple class files over several directories (eg, I have main/applet.class, main/panel.class, geom/shapes.class...). The applet works fine when run from my local hard drive, but now I want to move it to run off of an embedded system. The files in my embedded system would look like this:
+ webs
| - appPage.html
|-+ myApp
|-+ main
| - applet.class
| - panel.class
|-+ geom
- shapes.class
(It's actually quite a bit bigger than that...). Given that I can load appPage.html from my browser, what would the code and codebase fields of the applet tag look like? (I've tried several combinations, and haven't been able to find any that fit. I keep getting message boxes such as
<applet code = "main/applet.class" codebase="webs/myApp" width=1000 height=700></applet>
but I get a ClassNotFoundException error (main.applet.class). I've searched the web and cannot find a good explanation of exactly what codebase or code are supposed to refer to. Any help would be appreciated (note: I'm new to java and html, so forgive me if I'm missing something obvious).
For the structure shown, this:
Should be: