Where is Java 7 Installed on Mac OS X?
<p>I just downloaded Java 7u17 on Mac OS 10.7.5 from <a href="http://www.java.com/en/download/mac_download.jsp?locale=en" rel="nofollow">here</a> and the successfully installed it. In order to do some JNI programming, I'm needing to know where Java is installed on my Mac. </p>

<p>I thought that inside the <code>/Library/Java/JavaVirtualMachines/</code> folder there would be a folder called <code>1.7.0.jdk</code> or something, but the folder is empty. This is confirmed by running <code>ls /Library/Java/JavaVirtualMachines/</code> in the Terminal. I've tried searching for it to find out if it was installed somewhere else, but that doesn't seem to be turning anything up.</p>

<p>Could someone please tell me where Java is installed on my Mac?</p>
