Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSObject: Download it or available in JRE 1.6?

Tags:

java

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

like image 402
Abs Avatar asked Nov 03 '09 00:11

Abs


1 Answers

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

like image 61
jitter Avatar answered Sep 23 '22 17:09

jitter