How to configure Chrome Java plugin to use existing JDK in machine

When installing JDK on my machines (Windows 7), I do the following.

  • install latest version 1.7 JDK with Oracle installer (JDK only, no JRE )
  • copy the installation folder to the desired location, delete the samples, etc.
  • remove java
  • set% JAVA_HOME%, add% JAVA_HOME% \ bin to% Path%

Then I synchronize this folder on all my machines, so I update it (with unlimited cryptography material, jssecacerts , java.policy , supported libraries, etc.).

BUT , this has one big caveat, when Chrome should use a page load using Java, it believes that Java is not installed and wants to install it. I do not want to install it, as this can ruin my manual installation JDK.

So, is there a way to configure Chrome to use the JDK on my drive? I have a 32-bit version of the JDK and a 64-bit JDK, so this is not a problem (I think I will need to use the 32-bit version with Chrome).

I found a question in a Chrome project, How do I bind a Chrome Java plugin to an existing JDK without reinstalling Java? but no answers so far ...

UPDATE: for Ubuntu see Kalyan's answer

UPDATE: I still successfully use this approach, the last time from 1.7.0_21 on win7

UPDATE for 1.7.45: the path in the Windows registry is now [HKEY_LOCAL_MACHINE \ SOFTWARE \ MozillaPlugins]

+44
java google-chrome plugins
May 11 '11 at 9:30 a.m.
source share
8 answers

Chrome seems to be accessing a key in the Windows registry when it searches for a Java environment. Since the plugin installs the JRE, this key is installed on the JRE path and therefore needs to be edited if you want Chrome to work with the JDK.

  • Run the plugin installer.
  • Start → Run ( Winkey + R ), and then type regedit to modify the registry.
  • Find HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ MozillaPlugins \ @ java.com / JavaPlugin .
  • Export it as a reg file to say on your desktop (right click and select Export ).
  • Remove JRE (Control Panel → Add or Remove Programs). This should remove the above key, explaining the need to export it first.
  • Open the reg file exported to your desktop using a text editor (e.g. Notepad ++).
  • Edit the "Path" to match the corresponding DLL inside your 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 the modified reg file to add the keys to your registry.

The REGEDIT 4 prefix at the top of the file may be required only for the 64-bit version of Windows 7.

+34
Nov 22 '11 at 16:04
source share

On Ubuntu, you can follow these steps to solve the problem:

  • Create a directory called plugins inside $HOME/.mozilla if it does not already exist
  • Create a symbolic link to libnpjp2.so inside this directory using the following command:

     ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins 

    - or -

     ln -s $JAVA_HOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins 

    depending on whether you are using a 32-bit or 64-bit JVM installation. In addition, $ JAVA_HOME is the location of your JVM installation.

More detailed instructions can be found here .

+9
Jul 16 '12 at 16:45
source share

I am using the 64-bit version of Windows 7 Professional and have both the 32-bit and 64-bit versions of the Java 7u9 jre. Chrome refused to work until I delete the next registry key.

 HKEY_LOCAL_MACHINE/Software/MozillaPlugins/@java.com/DTPlugin,version=10.9.2 

Then I updated Chrome and the Applet, loaded with a warning that the plugin is out of date. I skipped "Run this time" and everything worked as expected.

There are two errors associated with this: 7118859 and 7133818

+8
Oct 30 '12 at 16:26
source share

I ran into a similar problem, but instead of changing regedit, I decided to change my Chrome settings

Try the following steps.

  • In a browser like Chrome: chrome://plugins/
  • Click + Details (upper right corner) to expand all plugin data.
  • Search for Java and click Disable for paths you do not want to use.

You may need to restart your browser to see the changes. It also assumes that the Java you have included is the latest version of Java.

Hope this helps

+5
Sep 06 '13 at 21:04 on
source share

I have been looking for a solution for this for a while. It seems that the JDK does not have Mozilla plugins (which is what Chrome uses) in it. This is only in the installation of JRE. There are several DLLs that make up the plugin, and they all start with np *

+1
Oct 22 2018-11-11T00:
source share

On a 64-bit version of Windows 7, I added a registry entry using the following script:

 @echo off reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "Description" /t REG_SZ /d "Oracle Next Generation Java Plug-In" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "GeckoVersion" /t REG_SZ /d "1.9" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "Path" /t REG_SZ /d "C:\Oracle\jdev11123\jdk160_24\jre\bin\new_plugin\npjp2.dll" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "ProductName" /t REG_SZ /d "Oracle Java Plug-In" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "Vendor" /t REG_SZ /d "Oracle Corp." reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin" /v "Version" /t REG_SZ /d "10.3.1" 

Note that you will need to change the Path .

+1
Feb 25 '13 at 19:05
source share

Starting with version 42 released on April 14, 2015, Chrome blocks all NPAPI plugins, including Java. Until September 2015, this will be possible by going to chrome://flags/#enable-npapi and clicking Enable . After that, you will need to use the IE tab extension to launch the Direct-X version of the Java plugin.

+1
Apr 15 '15 at 0:02
source share

I am on Windows 7 64 bit and cannot figure out if I can manually enable JRE8 64-bit for Chrome. It turned out that my problem is that the Java plug-in DLL is 64 bit, which will not work in 32-bit Chrome. Therefore, you need to install the x86 version of the JRE. The following are the Windows registry settings required to create

 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2] "Description"="Oracle® Next Generation Java™ Plug-In" "GeckoVersion"="1.9" "Path"="C:\\Program Files (x86)\\Java\\jre8\\bin\\plugin2\\npjp2.dll" "ProductName"="Oracle® Java™ Plug-In" "Vendor"="Oracle Corp." "Version"="1.8.0" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;jpi-version=1.8.0] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.1] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.1.1] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.1.2] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.1.3] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.2] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.2.1] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.3] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.3.1] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.4] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.4.1] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.4.2] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.5] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.6] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.7] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-applet;version=1.8] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-vm] "Description"="Java™ Virtual Machine" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin,version=11.0.2\MimeTypes\application/x-java-vm-npruntime] "Description"="Java™ Applet" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@java.com/JavaPlugin] "Description"="Oracle® Next Generation Java™ Plug-In" "GeckoVersion"="1.9" "ProductName"="Oracle® Java™ Plug-In" "Vendor"="Oracle Corp." "Version"="160_29" "Path"="C:\\Program Files\\Java\\jre8\\bin\\plugin2\\npjp2.dll" 
0
Apr 7 '14 at 16:41
source share



All Articles