About manual Give IE plus Java Plugin, and uses JDK with JBuilder9

zhaozj2021-02-16  46

If you want to run a Swing applet, you always have JDK (from Sun Download), sometimes there are several JDKs in the machine, what JBuilder, WebLogic, BEA Server, from Sun Download, etc. Is it too much? The machine is a bit chaotic, in addition to Application Server and other servlet (ejb) Container, if you want to run JDK separately, you will increase the efficiency of the server (in fact, a little bit of Server can also use JBuilder's own JDK, JBuilder below Tomcat is Very good example) Now you have to run Swing Applets, to set Java Plugin, and JRE, of course you can also choose to install JRE or JDK, but there is more JDK directory on your machine. Since JBuilder already brought JDK, it should be useful, and now it is set as follows (take Juilder9 as an example):

1. Copy JDK1.4 / JRE / BIN / JPICPL32.CPL under JDK1.4 / JRE / BIN / JPICPL32.CPL to ensure that there is a Java Plugin icon in the control panel. * .cpl is the control panel program, placed in the system directory, there is a corresponding icon in the control panel.

2, add (my Juilder9 installed in E disk) [HKEY_LOCAL_MACHINE / SOFTWARE / JAVASOFT / JAVA Runtime Environment / 1.4.1_02] "MicroVersion" = "1" "Runtimelib" = "E: // jbuilder9 / /jdk1.4//jre//bin//client//jvm.dll""javahome"="e://jbuilder9//jdk1.4//jre "and [hkey_local_machine / Software / Javasoft / Java Plug-in / 1.4.1_02]" usjava2iexplorer"=dword:00000001"javahome"="e://jbuilder9//jdk1.4//jre""hidesystemtrayicon"=dword:000000 guarantee the Java Plugin double-click on the control panel to run.

3, register npjpi141_02.dll, enter regsvr32 E: /JBUILDER9/JDK1.4/jre/bin/npjpi141_02.dll to ensure that npjpi141_02.dll is successful.

Npjpi141_02.dll is a COM component, including three COM objects, Java Plug-in 1.4.1_02 steering gear and corresponding Java Runtime Environment 1.4.1_02 linker, ClassID is 8AD9C840-044E-11D1-B3E9, respectively 00805f499d93, cafeefac-0014-0001-0002-abcdeffedcba, cafeefac-0014-0001-0002-abcdeffedcbb

It uses a set of COM interfaces that allow IE to browse with the Applet's page, it turns back to the Sun's JRE environment through Microsoft's Java virtual machine (a msjava.dll file in the system32 directory).

4. Because the registration process of npjpi141_02.dll, there is no correct setting in the corresponding position of the registry (npjpi141_02.dll's registration file named npjava141_02.dll in the registry, this is the biggest error), so in the end, it is necessary to manually Modify the registry. [Hkey_classes_root / clsid / {8AD9C840-044E-11D1-B3E9-00805F499D93} / inprocserver32] @ = "E: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / CLSID / {8AD9C840-044E-11D1-B3E9-00805F499D93} / inprocserver32] @ = "e: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / CLSID / {CafeeFac-0014-0001-0002-Abcdeffedcba} / inprocserver32] @ = "E: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

[Hkey_classes_root / clsid / {cafeefac-0014-0001-0002-abcdeffedcba} / inprocserver32] @ = "e: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

[Hkey_classes_root / clsid / {cafeefac-0014-0001-0002-abcdeffedcbb} / inprocserver32] @ = "e: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / CLSID / {Cafeefac-0014-0001-0002-AbcdeffEDCBB} / InprocServer32] @ = "E: //jbuilder9//jdk1.4//jre//bin/npjpi141_02.dll"

They are all file name errors, modify the three COM objects contained in npjpi141_02.dll points to the correct file name.

5. Modify MSJava.dll Turn to Sun's JRE.

[HKEY_CLASS_ROOT / CLSID / {08B0E5C0-4FCB-11CF-AAA5-00401C608501} / treatas] @ = "{cafeefac-0014-0001-0002-abcdeffedcbb}"

ClassID is included in the COM object of 08B0E5C0-4FCB-11CF-AAA5-00401C608501 is included in Msjava.dll. Is part of the MS Java virtual machine.

6, the last step can be done, there is no way, it can be running.

[HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Active Setup / Installed Components / {08B0E5C0-4FCB-11CF-AAA5-00401C608500}] "KeyFileName" = "E: //jbuilder9//jdk1.4//jre//bin//actpanel. DLL "

Run the Java Plugin program in the Control Panel, set, discovery that the details of the IE are set in detail also have an option to use the Sun virtual machine instead of the MS. The applets running Swing Applet and AWT can be implemented, and the taskbar has also expected a dull caravan, and the applet can be displayed normally. Full text

转载请注明原文地址:https://www.9cbs.com/read-27141.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.050, SQL: 9