I am trying to compile a small
applet that will communicate with javascript.
The code requires the JSObject.class and JSExecption.class that I understand is part of a Netscape package named java40.jar. I have not been able to locate a copy of this jar file. I then was told that if I am using JDK/JRE 1.4, the jar is located under jre/lib and it's called plugin.jar. I found this file and placed it in the directory with my applet, but the applet will not compile.
I then extracted the JSObject.class and JSExecption.class files from the jar and placed them in the same directory as my applet, but even then it will not compile. I get an error that says "cannot access JSObject.
Can anyone tell me where I am going wrong?
If not can anyone tell me of another way to pass a
String from an applet to a variable in javascript without using these two files?