This is a question from a Java noob.
I have eclipse open (JRE 1.6), I have copied this code into an eclipse class.
The line in question is this:
import netscape.javascript.JSObject;
Eclipse is complaining that the import can not be resolved. I read that in the docs that the Java Plug-In comes as standard and contains the above. I assumed I don't need any extra JAR files. Is this true?
Or do I need to download something to make use of JSObject?
Thanks all
Search for the plugin.jar
normally located in your jre\lib
folder. You will need to include that one explicitly in your eclipse project I guess
btw. don't forget to set the MAYSCRIPT
attribute on your applet tag in order to explicitly enable java-js communication which normally is disabled by default for security reasons
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With