I just installed it from the web at https://java.com/en/download/
echo $JAVA_HOME just leaves a blank line.
java -version yields:
“No Java runtime present, requesting install.” with the same result as the error message above.
Looking through some Java documentation (command line java on mac), it looks like you have to have the jdk installed, not just the run time environment to use the command line tools.
Or is it possible to just add java to the path?
Thanks for the response Perry.