Mac OS X上的Java安装位置在哪里?
问题: I just downloaded Java 7u17 on Mac OS 10.7.5 from here and then successfully installed it. 我刚刚从下载在Mac OS 10.7.5的Java 7u17 这里 ,然后安装成功。 In order to do some JNI programming, I need to know where Java installed on my Mac. 为了做一些JNI编程,我需要知道在Mac上安装Java的位置。 I thought that inside the /Library/Java/JavaVirtualMachines/ folder, there would be a folder called 1.7.0.jdk or something, but then I found that the folder is empty. 我认为在 /Library/Java/JavaVirtualMachines/ 文件夹中,会有一个名为 1.7.0.jdk 的文件夹,但后来我发现该文件夹是空的。 This was confirmed by running ls /Library/Java/JavaVirtualMachines/ in the Terminal. 通过在终端中运行 ls