joint compilation

Compiling mixed Java and Groovy source files together.

Groovy Java Interoperability – 10+ Tested Examples

Groovy Java interoperability is smooth. See 12 tested examples covering calling Java from Groovy, calling Groovy from Java, GroovyShell, GroovyClassLoader, JSR-223 ScriptEngine, joint compilation, and type coercion between languages. “The best thing about Groovy isn’t replacing Java – it’s the fact that every Java class you’ve ever written already works in Groovy, and every Groovy class you write works right back in Java.” Dierk König, Groovy in Action Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | ... Read More