Thanks, Daniel; I'll give it a try.  Regards, Jim

-----Original Message-----
From: Daniel Sun <sun...@apache.org> 
Sent: Sunday, December 15, 2024 7:57 PM
To: users@groovy.apache.org
Subject: Re: Groovy Compiler

EXTERNAL

try setting the following system property for groovy compilation:

-Dgroovy.target.bytecode=1.8

Cheers,
Daniel Sun

On 2024/12/13 00:14:39 James Poli via users wrote:
> Our company has upgraded to Groovy 4 and JDK 21. However, one platform we 
> support, MVS, only supports a JDK 8 runtime.
>
> When running a class compiled with Groovy 4, an exception results:
>
> ... java.lang.UnsupportedClassVersionError: JVMCFRE199E bad major version 
> 61.0 of class=..., the maximum supported major version is 52.0; offset=6
>
> Can we cross-compile or force Groovy to generate bytecodes that support JDK 8?
>
> I appreciate any help you can provide.
> Jim
>
>

Reply via email to