P4 & Monterey “could not find Java runtime environment”

2017 MacBook, Monterey
Processing 4 won’t start, error: could not find Java runtime environment
downloaded and installed Java, still same error.