菜单中--window--Properties--java--compile--选择jdk版本 注意: 你是否安装了此版本的jdk 在菜单中--window--Properties--java--installed jar中添加