See all the Java versions installed on Mac

前端 未结 1 1855
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 19:26

How can I get all the Java versions installed on my Mac?

Is there a terminal command for this?

When I run java -version, I get th

相关标签:
1条回答
  • 2020-12-12 20:03
    /usr/libexec/java_home -V
    

    lists one line per Java environment installed (and known to the /usr/bin/java command). You can still have other Java installations - like Zulu or AdoptOpenJDK - which are not registered.

    0 讨论(0)
提交回复
热议问题