Error loading class message generated by applet
Hello,
I've been writing some simple Java applets using the free download of Borland's JBuilder X Foundation. I followed Borland's "GoodEvening" example in their documentation and I can run that applet and my own applets from within the development environment and also from my web browser (galeon). However, when I go to another computer to check out the applets, they don't run. The following messages appear in the Java console:
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
Error loading class: powermodapplet.PowerModApplet
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: powermodapplet.PowerModApplet
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
In the corresponding web page I have the following line in the arguments of the APPLET tag:
CODEBASE = "."
CODE = "powermodapplet.PowerModApplet.class"
ARCHIVE = "PowerModApplet.jar"
I used "jar tf" to see if the directory structure in my jar file is appropriate. It produced the following output:
# lots of stuff omitted for clarity
com/borland/jbcl/view/image/rollUR.gif
com/borland/product/ResIndex.class
com/borland/sql/SQLAdapter.class
powermodapplet/PowerModApplet.class
powermodapplet/PowerModApplet_buttonMod_actionAdapter.class
It didn't make any difference when I changed
CODE = "powermodapplet.PowerModApplet.class"
to
CODE = "powermodapplet/PowerModApplet.class"
Does anyone have ideas/suggestions I can try to get my applets working for people other than me?
Thanks,
Bob Buchanan
banach.millersville.edu/~bob/math478/
|