原因 方法1 方法2:项目右键-》build path->configure build path->libraries->jre system library->edit->enivironments ->自己选择