When installing JDK in my machines (Windows 7), I do the following.
- install latest 1.7 JDK with the Oracle installer (just the JDK, no JRE)
- copy the install folder, to the place I really want, remove samples, etc.
- uninstall Java
- set %JAVA_HOME%, add %JAVA_HOME%\bin to %Path%
Then I synchronise that folder in all my machines so I keep it updated (with unlimited cryptography stuff,jssecacerts, java.policy
, endorsed libraries, etc).
BUT this has one big caveat, when Chrome needs to use load a page that uses Java, it thinks Java is not installed and wants to install it. I don't want to install it as it would mess with my 'hand-installed' JDK.
So is there a way to configure Chrome so it uses the JDK in my disk? I have both JDK 32-bit and JDK 64-bit, so that is not a problem (I guess I would need to use the 32-bit one with Chrome).
I found a question in the Chrome project, How do I have the Chrome Java plugin reference an existing JDK without reinstalling Java?, but no replies so far...
UPDATE: for Ubuntu, see Kalyan's answer