How to configure Chrome's Java plugin so it uses an existing JDK in the machine -
when installing jdk in machines (windows 7), following.
- install latest 1.7 jdk oracle installer (just jdk, no jre)
- copy install folder, place want, remove samples, etc.
- uninstall java
- set %java_home%, add %java_home%\bin %path%
then synchronise folder in machines keep updated (with unlimited cryptography stuff, jssecacerts, java.policy
, endorsed libraries, etc).
but has 1 big caveat, when chrome needs use load page uses java, thinks java not installed , wants install it. don't want install mess 'hand-installed' jdk.
so there way configure chrome uses jdk in disk? have both jdk 32-bit , jdk 64-bit, not problem (i guess need use 32-bit 1 chrome).
i found question in chrome project, how have chrome java plugin reference existing jdk without reinstalling java?, no replies far...
update: ubuntu, see kalyan's answer
update: still continue use approach successfully, last time 1.7.0_21 on win7
update 1.7.45: path in windows registry [hkey_local_machine\software\mozillaplugins]
apparently, chrome addresses key in windows registry when looks java environment. since plugin installs jre, key set jre path , therefore needs edited if want chrome work jdk.
- run plugin installer anyways.
- start -> run (winkey+r) , type in
regedit
edit registry. - find hkey_local_machine\software\wow6432node\mozillaplugins\@java.com/javaplugin.
- export reg file say, desktop (right-click , select export).
- uninstall jre (control panel -> add or remove programs). should delete key above, explaining need export in first place.
- open reg file exported desktop text editor (such notepad++).
edit "path" matches corresponding dll inside jdk installation:
regedit 4 [hkey_local_machine\software\wow6432node\mozillaplugins\@java.com/javaplugin] "description"="oracle® next generation java™ plug-in" "geckoversion"="1.9" "path"="c:\program files (x86)\java\jdk1.6.0_29\jre\bin\new_plugin\npjp2.dll" "productname"="oracle® java™ plug-in" "vendor"="oracle corp." "version"="160_29"
save file.
- double click modified reg file add keys registry.
the regedit 4
prefix @ top of file might required windows 7 64-bit.
Comments
Post a Comment