1、ant编译build.xml文件时会遇到这个问题 2、解决办法: build.xml -- 右键Run As -- External Tools Configurations 3、选择JRE标签,选择Run in the same JRE at the workspace 相关文章: