Project -> Properties -> Java Build Path -> Libraries,选中JRE System Library,然后Remove。再点击Add Library -> JRE System Library -> next,选择Alternatie JRE,点击Installed JREs,选择jdk同级目录下的jre即可,然后依次点击Apply ->OK
解决eclipse中Access restriction: The type ‘XXX’ is not API
最新推荐文章于 2023-06-13 09:55:30 发布