1
javac -version 

This command gives the correct updated version, so I think the JDK was installed correctly. I need to know its location. How can I find the path to the JDK?

11thal11thal
  • 333
  • 3
  • 13

2 Answers2

2
/Library/Java/JavaVirtualMachines
  • Bingo, this is the standard location for [JVM](https://en.wikipedia.org/wiki/Java_virtual_machine)s on [macOS](https://en.wikipedia.org/wiki/MacOS) in the last several years. – Basil Bourque Jun 16 '20 at 20:38
1

You can use the following command on a terminal:

/usr/libexec/java_home

To find the location of your jdk install.

Hope this helps!

Reece Coombes
  • 394
  • 2
  • 9