Hello Everyone,
I have a module linked with Netscape/Mozilla-Browsers.
In this module I start a JVM via the JNI interface.
When this VM is running and I want to load an Applet in the Browser, I
get the message that an error occured while connecting to a running
JVM.
With the affect that the applet cannot be loaded.
What can I do to find the right connection between the two VMs?
Or how can I start the JNI-VM to avoid the above mentioned.
thanx in advance
Sebastian
Matthias Ernst - 14 Oct 2003 16:46 GMT
> What can I do to find the right connection between the two VMs?
I'm afraid it is not possible to start two VMs in the same process. See
http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html.
"JDK 1.1.2 does not support creating more than one VM in a single process."
AFAIK, this still holds.
What you could do in your plugin, is _find_ the Java plugin's VM instead of
creating a new one. That would require starting an applet first.
Matthias

Signature
Matthias Ernst
Software Engineer
CoreMedia - Smart Content Technology