How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:205 次
If you have the following two errors building your Java projects using Eclipse,
- Unsafe cannot be resolved to a type
- The import sun.misc.Unsafe cannot be resolved
Then, this turns out to be the fix for me.

The import sun.misc.Unsafe cannot be resolved
Navigate to the project and Select Project – Preferences – Java Compiler – Enable project specific settings – Compiler compliance level = 11 – Use default compliance settings (Ticked)

eclipse-project-properties-java-compiler-enable-project-specific-settings
Apply and Close – then do a full clean rebuild, which will make the errors go away!
–EOF (The Ultimate Computing & Technology Blog) —
推荐阅读:侵害消费者权益行为处罚办法(工商总局令第73号) 先别想着做什么网站赚钱了 先做好网站建设吧 个人网站站长应了解的基础知识 作为个人站长,何不入驻今日头条 对个人站长的一些思考 一位个人站长的自白 2020疫情将过 个人站长能否有机会赚钱 这次疫情下对个人站长是机会吗? 站长赚钱需要做什么准备工作? 个人站长做个网站赚钱真是越来越难了
- 评论列表
-
- 添加评论