MacOS – Java – version 1.7.45 – and Mavericks

google-chromejavamacos

Chrome refused to run a java app unless i upgraded to .45, which I did my dling the installer from oracle. Java 7 u45. Installer said it worked. Chrome still won't start java.

$ which java
/usr/bin/java

$ java -version
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
~/private/WDI/git?  

I may be easily fooled, but that doesn't say "45" anywhere. (Yes, "06", and "24" and "23.2-b09", but nary a 45. Such numbers!)

Anybody know if this is u45, or where the installer placed it?

UPDATE: there is a Java System Preference Panel that says "Your system has the recommended version of Java: Java 7 Update 45." Still, Chrome doesn't appear to see it.

Best Answer

The issue is that Oracle is being confusing abut the JRE.

The OSX JRE, which is what you downloaded, does not update /usr/bin/java it just installs itself to /Library/Java/JavaVirtualMachines/

You can either use the path to the java binary beneath that or instead install the JDK from this page which does update /usr/bin/java

@RichTrouton's answer might be correct on what Chrome uses i.e. a 32 bit JRE but this answer explained /usr/bin/java issues. Note that the simple Oracle JRE does not update /usr/bin/java and I think Apple's later installs do not touch this either. Your browser does not use /usr/bin/java but directly looks in /System or /Library