Groovy‘s RootLoader is a handy class that can be used to encapsulate a Groovy script’s reference to external classpath dependencies within the script itself. The documentation for RootLoader states, ...
JAVA_HOME is an operating system (OS) environment variable which can optionally be set after either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) is installed. The JAVA_HOME ...