No java installations was detected, although I have Java
I had such problem in sbt run having $GREP_OPTIONS=--color=always --ignore-case. Unsetting the environment variable helped.

https://stackoverflow.com/a/47180447/907576