With changes in the Ant runtime shipped with MyEclipse, you do need to run Ant with Java 11 or higher. However, with a modification to your build.xml
you can still generate Java 8 bytecode.
In the javac
task, please add source="1.8" target="1.8"
to generate Java 8 bytecode. You can also specify fork="true" executable="[path to javac executable"
to compile with a specific JDK.
Some additional notes can be found here: https://stackoverflow.com/questions/75336081/running-ant-tasks-in-eclipse-with-java-1-8-lead-to-jre-version-less-than-11-is
Apologies for the additional work required; we do have to move to using more recent version of tools like Ant which may have higher Java version requirements. Do let us know if this works for you.