Determining the version of Java SDK on the Mac

后端 未结 6 537
面向向阳花
面向向阳花 2021-01-31 01:21

I have a MacBook Pro running Snow Leopard; how can I see what version of the Java SDK is installed on my Mac?

6条回答
  •  北海茫月
    2021-01-31 01:53

    On modern macOS, the correct path is /Library/Java/JavaVirtualMachines.

    You can also avail yourself of the command /usr/libexec/java_home, which will scan that directory for you and return a list.

提交回复
热议问题