facebook

Ant not working

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #696832 Reply

    evosoft
    Participant

    After latest update 2023, Ant is not working anymore. It tells I need to have JAVA > 11, but our projects need to be build in 1.8.

    How to solve it?

    #696834 Reply

    Brian Fernandes
    Moderator

    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.

    #696853 Reply

    evosoft
    Participant

    Yes, it helps.
    Thanks.

    #697010 Reply

    Brian Fernandes
    Moderator

    Just wanted to let you know that we released an update, 2023.1.1, in which we’ve addressed this issue. You can now launch Ant with Java 8 again, and will not need to use the additional attributes I suggested above. Thanks again for the report.

    More on the 2023.1.1 release here.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Ant not working

You must be logged in to post in the forum log in