I am pretty much new to java and groovy. I have installed groovy 3.0 on my windows 10 laptop (64 bit) and when tried to run groovy getting following warning:
&g
Setting JAVA_HOME to a Version 8 JRE solved it for me:
JAVA_HOME
#! /usr/bin/env -S JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre groovy println "hello world"