使用 ant 运行build.xml 运行 报JRE version less than 1.7 is not supported.
Eclipse 升级到Mars 4.5.1或者以上的Oxygen版本后,老项目使用jdk1.6,通过ant编译jar时,会遇到如下问题:

使用jre1.6运行ant-打jar包 报JRE version less than 1.7 is not supported.

解决方案:
选中build.xml,进入“run as”—>”Extenal Tools configurations”,修改jre配置项,如下使用 ant 运行build.xml 运行 报JRE version less than 1.7 is not supported.图:
重新编译,编译成功!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-10-14
  • 2021-07-16
  • 2021-04-09
相关资源
相似解决方案