How to find all Java versions (and paths) on Macbook

Run below command to list all Java versions and their paths on your Macbook

/usr/libexec/java_home -V

// Output
Matching Java Virtual Machines (2):
    11.0.15 (x86_64) "Oracle Corporation" - "Java SE 11.0.15" /Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home
    11.0.14.1 (arm64) "JetBrains s.r.o." - "OpenJDK 11.0.14.1" /Users/phuc/Library/Java/JavaVirtualMachines/jbr-11.0.14.1/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home

Tagged : / / / /
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x