How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:223 次
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) —
推荐阅读:The A to Z of Content Marketing: Habits Every Content Marketer S Keeping the Flame Going: How to Rock a Steady Job and Still Have How to Use Social Media and User-Generated Content to Boost Traf 7 Types of Blog Posts and When to Use Them How to Maximize Profit From Your Blog Visitors Win a Premium WordPress Theme For Your Blog Easy Tips for Bloggers to Make Insta-Dough on Instagram “Celebrating” World Backup Day 2016 How the Right Visual Can Transform Any Landing Page Lessons From Star Wars: How The Force Awakens Impacted the Inter
- 评论列表
-
- 添加评论