In order to know the Java HOME Path on your Mac, you can execute the java_home command-line utility available on macOS under /usr/libexec/
Example:
Code2care@Mac % /usr/libexec/java_home
/Users/c2ctech/Library/Java/JavaVirtualMachines/openjdk-20/Contents/Home
As you can see that my Java HOME is set to be that of OpenJDK-20 (i.e. Java JDK 20)

Using this path you can get into the bin folder and have access to the path of all java related executable files.
Code2care@Mac % cd bin
Code2care@Mac % ls
jar jcmd jhsdb jpackage jstatd
jarsigner jconsole jimage jps jwebserver
java jdb jinfo jrunscript keytool
javac jdeprscan jlink jshell rmiregistry
javadoc jdeps jmap jstack serialver
javap jfr jmod jstat
Have Questions? Post them here!
- How to find path of file on Mac Terminal
- How to disable Siri on Mac Monterey
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Select Line Number TextEdit on Mac
- Go to Specific file path using Mac Finder
- How to find Java HOME in Mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Must Know Homebrew Commands for Mac/Linux Users
- How to Insert an Inverted Question Mark on Mac ¿
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- How to make macOS Terminal window Transparent (or Opaque)
- How to check of Updates on Microsoft Edge Browser on Mac (macOS)
- Limit scrollback rows in macOS Terminal
- How to identify installed Java (JDK) Version on macOS
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- Open Docker from Terminal Command on Mac
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023]
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- How to remove username from Mac Menu Bar?
- macOS Ventura XCode Command Line Tools Installation
- Where is .zshrc file located in macOS
- How to Show Path of Files or App in Mac Spotlight Search
- How to enable root user on Mac Terminal
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively
- Remove items from JavaScript array - JavaScript
- Program 9: Divide Two Numbers - 1000+ Python Programs - Python-Programs
- Disable jQuery button after being click - jQuery
- How to disable Microsoft teams from startup Windows 10 - Teams
- How to Install Python Modules in VS Code - Python
- How to know the Safari Version on Mac - MacOS
- iOS Fix: This app is no longer shared with you. To use it, you must buy it from the App Store. - Apple
- How to Change Android Title Bar Color? - Android