[CommandBox v4.5.0+00198] Unable to find any JVMs matching version "1.8"

I’ve just installed CommandBox 4.5 on OSX Mojave using Homebrew (“brew install commandbox”) - super easy!
I can also start “box” without any issues. But always get the message

Unable to find any JVMs matching version “1.8”.
No Java runtime present, try --request to install.

when starting.
Java (1.8) actually IS installed =>
$ java -version shows me this:

java version “1.8.0_201”
Java™ SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot™ 64-Bit Server VM (build 25.201-b09, mixed mode)

Any ideas why the message is appearing anyway?

I don’t really know homebrew since I’m not a Mac guy, but the homebrew package is supposed to take care of installing Java as well. I wonder if Homebrew has changed something in light of the Oracle licensing that changed that behavior.

Homebrew automatically creates a shell script called box that actually runs CommandBox and that script appears to be where your message is coming from. Perhaps you can troubleshoot by examining the script and seeing how brew checks for the installed Java versions.