I am trying to call an
applet method that resides inside a jar file from Javascript. I am
testing this in Firefox, which runs the Embed tag below. If I put my function in the class that runs initially (upload.class) then I can access the function just fine with something like document.uploadAppletFF.myFunction(), but if I put the function in a helper class contained in the jar, I get a function not found error and document.uploadAppletFF.myFunction() no longer works. Do I need some sort of special compilation flag when I create the jar or something? I don't understand why it cant find that function in the helper class. The applet itself runs fine and has no problems using the other classes and methods.
This page (
http://java.sun.com/javase/6/docs/technotes/guides/jar/jarGuide.html) leads me to believe that I should have access to the public "helper" class methods as well. "Note that the familiar CODE=myApplet.class parameter must still be present. The CODE parameter, as always, identifies the name of the applet where execution begins.
However, the class file for the applet and all of its helper classes are loaded from the JAR file. "
Any ideas would be greatly appreciated.