JDK-5073943 : ISV could not create instance of browser running applet with browser
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-07-14
  • Updated: 2012-10-09
  • Resolved: 2004-12-17
Related Reports
Duplicate :  
Description
The customer is running a Java main program which (using JNI, I expect) creates an instance of a browser (IE) in its own process, and then attempts to run an applet in that browser.  This seems to be a reasonable design approach, but is incompatible with the current Java plugin. It spans JDK1.3, 1.4, 1.5

Suggest Fix:


can the plugin be easily modified to check for the existence of a Java VM, and use that, rather than blindly creating one? [Could it use JNI GetCreatedJavaVMs() and call CreateJavaVM when it finds none?]

Comments
EVALUATION This is a request for running applet inside embedding IE. ###@###.### 10/13/04 17:50 GMT On Windows, Java Plug-in runs in the same process as the browser. Thus, when the Java program tries to embed IE which in turns embed Java Plug-in to run applets, it would fail because currently there could only be one instance of the VM in the same process. The workaround is to either run the browser in a separate process and reparent the browser windows into the Java program, thus Java Plug-in will run in a separate process as the main Java program. Or the submitter should consider to use project like JDIC (https://jdic.dev.java.net/) that solves the browser embedding problem using similar approach as described above. ###@###.### 2004-11-23 00:45:07 GMT
23-11-2004