以myeclipse为例 在项目中,右键点击ant文件, 选择Run As -- External Tools Configurati on, 然后选择JRE tab页,在这里可以重新指定所使用的JRE