No meu OS X Lion, o JDK 1.7 da Oracle está instalado neste local:
/System/Library/Frameworks/JavaVM.framework/Versions/Current -> A
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Acabei de atualizar meu JDK para 1.7.0_51 e ele foi instalado no mesmo local.
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
UPDATE : Após fazer o upgrade para 1.7.0_51, agora / usr / libexec / java_home também lista os 1.7 JDKs. Antes disso, mostrava apenas as versões mais antigas do 1.6. Agora vejo que o JAVA_HOME correto é /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home .
ls -l /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
total 39768
-rw-rw-r-- 1 root wheel 3339 Dec 19 04:13 COPYRIGHT
-rw-rw-r-- 1 root wheel 40 Dec 19 04:13 LICENSE
-rw-rw-r-- 1 root wheel 114 Dec 19 04:13 README.html
-rw-rw-r-- 1 root wheel 123324 Dec 18 22:34 THIRDPARTYLICENSEREADME-JAVAFX.txt
-rw-rw-r-- 1 root wheel 173559 Dec 19 04:13 THIRDPARTYLICENSEREADME.txt
drwxrwxr-x 44 root wheel 1496 Dec 19 04:19 bin
drwxrwxr-x 9 root wheel 306 Dec 19 04:13 db
drwxrwxr-x 9 root wheel 306 Dec 19 04:13 include
drwxrwxr-x 10 root wheel 340 Dec 19 04:16 jre
drwxrwxr-x 14 root wheel 476 Dec 19 04:17 lib
drwxrwxr-x 5 root wheel 170 Dec 18 22:34 man
-rw-rw-r-- 1 root wheel 502 Dec 19 04:13 release
-rw-rw-r-- 1 root wheel 20039662 Dec 19 04:13 src.zip
Isso parece o familiar JAVA_HOME em outras plataformas.