在项目上右键,选择properties->Java Build Path,选择Libraries选项卡,点击edit 选择第二个Alternate JRE 点击finish,然后apply。 如有疑问,欢迎评论留言。