You can see the install locations of the recognized JDKs by using java_home
's "-V" option:
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
1.8.0_31, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
1.7.0_55, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
You see newer JDKs are under /Library/Java/JavaVirtualMachines
. I think it was moved out of "System" after Apple stopped developing the OSK JDK themselves and Oracle took over.
Also see /usr/libexec/java_home --help
for more options.