Run Ant on Eclipse Mars with Java 1.6

前端 未结 9 1744
梦如初夏
梦如初夏 2020-12-28 16:59

I downloaded the latest release of Eclipse (Mars) and changed the required Java version to 1.6 in eclipse.ini file as my project uses Java 1.6.

I configured installe

9条回答
  •  囚心锁ツ
    2020-12-28 17:45

    I have Eclipse Oxygen running on JRE 1.8 but building some old 1.7 projects, and have jdk1.7.0_40 installed as a separate JRE and set up in the tools external config, but still got the "jre less than 1.8 not supported" error.

    What fixed it for me was just updating the build xml configuration directly, especially if you have another project which does work that you can copy from.

    Specifically, I went to the launch configurations at:

    workspace/.metadata/.plugins/org.eclipse.debug.core/.launches
    

    And edited the relevant ...build.xml.launch file, replacing:

    
    
    

    With:

    
    
    
    

    And restarted Eclipse to pick it up.

    No idea if this is moving forward or backwards in terms of Eclipse support, but it fixed my problem.

提交回复
热议问题