How do I check if the Java JDK is installed on Mac?

前端 未结 9 707
误落风尘
误落风尘 2021-01-29 21:48

How do you check if Java SDK is installed on a Mac?

Is there a command line for this?

9条回答
  •  庸人自扰
    2021-01-29 22:29

    • Open terminal.
    • run command to see:

      javac -version

    • Also you can verify manually by going to the specific location and then check. To do this run below command in the mac terminal

      cd /Library/Java/JavaVirtualMachines/

    Then run ls command in the terminal again. Now you can see the jdk version & package if exists in your computer.

提交回复
热议问题