Netscape provides netscape.plugin.Plugin class which is the Java representation of the native plug-in.Specific for particular plug-in subclass of java.plugin.Plugin must be created and installed together with plug-in itself (NPX_PLUGIN_PATH).LiveConnect mechanism automatically instantiates Java class representing plug-in.Communication between this object and the plug-in is done the same way as in general case of Java-native code communication, except for:
-
1.different javah program is provided by Netscape (it must be run with additional parameter -jri) 2.one need not to explicitly load the native library - all code is in the plug-in dynamic library which is loaded automatically when necessary (Java object creation follows plug-in load).
|