How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:189 次
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) —
推荐阅读:给哪些网站暂时赚不到钱的站长鼓鼓劲 个人站长 建设网站贵在坚持 网站站长赚钱的6大好用的途径 整理6款站长赚钱方法 希望对你有所帮助 个人站长们常见的很多个网站盈利模式总结 春季饮食宜润肺,常吃炖梨既滋润又养人,口感甜香味道美 这道小学应用题比较难,解题关键是求相遇时间 豆腐搭配鸡蛋做出香酥可口的丸子,营养也很丰富 这道小学奥数题难倒多数学生,解题关键是比例 分享茄子的家常做法,吃起来不油腻,营养美味又下饭
- 评论列表
-
- 添加评论