简体   繁体   English

Macintosh El Capitan上的Java JDK在哪里?

[英]Where is Java JDK on Macintosh El Capitan?

I know there are a lots of question like this but they seem to reefer to an old version of java or an old os environment, so i am forced to make the question again: how can i find the path of java jdk on my mac? 我知道有很多这样的问题,但是它们似乎会回溯到Java的旧版本或旧的os环境,因此我被迫再次提出问题:如何在Mac上找到Java jdk的路径? Thank you. 谢谢。

Try following command in your Macintosh terminal window 尝试在Macintosh终端窗口中遵循以下命令

> echo $(/usr/libexec/java_home)

it will show the location of installed JDK. 它将显示已安装JDK的位置。

Output 输出量

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home

there is a command $java -verbose. 有一个命令$ java -verbose。 It returns complete path at the end of command. 它在命令末尾返回完整路径。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM