No, this suggestion misses the point of the problem. Having the VRML browser
.jar or .zip class archive in the classpath environment variable allows you
to compile java code that uses EAI - there are still problems *running* any
applet with EAI using the Sun 1.2 Java plugin (I think.)
The error I get when trying to use EAI with the plugin is as follows:
java.lang.UnsatisfiedLinkError: getBrowserType
at vrml.external.Browser.getBrowser(Browser.java, Compiled Code)
at vrml.external.Browser.getBrowser(Browser.java)
at CreateTest.start(CreateTest.java:58)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This error is caused by the JVM not finding a native implementation (using
JNI) of a method called 'getBrowserType'. I think this method, part of the
'getBrowser' method of the vrml.external.Browser class, uses JNI, and with
Cosmo Player on Win32, this native method is found in the CosmoPlayer dll
library, which for some reason the Java plugin cannot find/use. I tried
moving this dll around ('npcosmop211.dll') and putting it in my path, but to
no avail.
Any further help/ confirmation of lack of support for EAI in the plugin
would be appreciated.
Alex Coyle.
Quote:
>> > I'm trying to use the Java 1.2 plugin with an applet that uses EAI.
>> Your classpath doesn't include the VRML browser .jar file.
>> These come with Cosmo or other EAI browsers.
>> See the EAI FAQ for more details on where they go.
>> Guy.
> Hi,
>I'm getting the same problem. Have you tried Guy's suggestion? Does it
work? I
>read at the eai newsgroup:
>Quoting a post from Jan. 1, '99 comp.lang.java.programmer:
>"Java plugin currently lacks support for LiveConnect on which EAI
>implementation relies."
>But if thats changed things are looking up!