Since Groovy runs on the JVM, you have a Java Development Kit (JDK) installed before you can use it. Check for Java : Open the Command Prompt ( cmd ) and type: java -version Use code with caution. Required Version : Groovy 4.0 requires at least JDK 1.8 .

Prerequisites. Groovy 5.0 requires Java 11+ with support for up to Java 25. The Apache Groovy™ programming language

(the latest release) requires JDK 11 or later and supports up to JDK 25 .

: If not installed, download it from the Official Oracle Website or use OpenJDK. Step 1: Download the Groovy Windows Installer

While you can download raw binary ZIP files, the easiest way for Windows users is the community-maintained Windows Installer (MSI). Install Groovy - The Apache Groovy programming language