Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is there an API to attach a particular JVM with the Firefox browser instance when it comes up?

  • No replies
  • 6 have this problem
  • 1 view
more options

I am using Firefox 3.6.x with JRE 6 u10 and above on Linux. I attach the JVM to the Firefox process using the dlopen() and AttachToCurrentThread() calls. The plugins folder within Firefox contains a soft link to the libnpjp2.so shared library from JRE 6. When I bring up the browser instance with no pages loaded, the process information confirms that the JRE is loaded (libjava.so, libjvm.so are present and attached to the firefox process). Now when I open an applet on this firefox instance - the browser crashes.

It seems that for some reason that the firefox process is oblivious of the already loaded JVM instance and tries to open another instance of the JVM to attach with the applet which causes the crash.

Is there an API that is exposed by Firefox that can help me load the JVM programmatically within the browser? And if so will this help in avoiding a call to reload the JVM when an applet is opened?

I am using Firefox 3.6.x with JRE 6 u10 and above on Linux. I attach the JVM to the Firefox process using the dlopen() and AttachToCurrentThread() calls. The plugins folder within Firefox contains a soft link to the libnpjp2.so shared library from JRE 6. When I bring up the browser instance with no pages loaded, the process information confirms that the JRE is loaded (libjava.so, libjvm.so are present and attached to the firefox process). Now when I open an applet on this firefox instance - the browser crashes. It seems that for some reason that the firefox process is oblivious of the already loaded JVM instance and tries to open another instance of the JVM to attach with the applet which causes the crash. Is there an API that is exposed by Firefox that can help me load the JVM programmatically within the browser? And if so will this help in avoiding a call to reload the JVM when an applet is opened?