J'ai téléchargé la dernière version de Java sur le site d'Oracle et je l'ai installée sur mon mac.
MacCris:~ cris$ java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
ensuite,
MacCris:/ cris$ ls -l /System/Library/Frameworks/JavaVM.framework/Versions
total 64
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.6 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Jan 3 20:20 1.6.0 -> CurrentJDK
drwxr-xr-x 7 root wheel 238 Jan 3 20:20 A
lrwxr-xr-x 1 root wheel 1 Jan 3 20:20 Current -> A
lrwxr-xr-x 1 root wheel 59 Jan 3 20:20 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
en allant dans /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
et en exécutant
MacCris:bin cris$ /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
Donc le currentJDK est en version 1.6 malgré avoir installé la dernière version de Java.