右击项目名--->BuildPath-->Confiure BulidPath-->在右侧的Library下点击JRE开头的--->remove掉-->addLibrary--->选择自己的JRE System Library-->next-->ok