How to configure Chrome's Java plugin so it uses an existing JDK in the machine -


when installing jdk in machines (windows 7), following.

  1. install latest 1.7 jdk oracle installer (just jdk, no jre)
  2. copy install folder, place want, remove samples, etc.
  3. uninstall java
  4. 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.

  1. run plugin installer anyways.
  2. start -> run (winkey+r) , type in regedit edit registry.
  3. find hkey_local_machine\software\wow6432node\mozillaplugins\@java.com/javaplugin.
  4. export reg file say, desktop (right-click , select export).
  5. uninstall jre (control panel -> add or remove programs). should delete key above, explaining need export in first place.
  6. open reg file exported desktop text editor (such notepad++).
  7. 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" 
  8. save file.

  9. double click modified reg file add keys registry.

the regedit 4 prefix @ top of file might required windows 7 64-bit.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -