1.设置ecplise的jre为jdk
2.ant 右键——run as ——External Tools Configurations——JRE——Runtime JRE 选择 Execution environment