How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:219 次
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) —
推荐阅读:食用调和油将被要求标识各植物油比例 胶原蛋白的美丽谎言 暴利驱动的疯狂营销 常见的六大清肠食物可降低血胆固醇 几种有效的清肠食物帮助你恢复胃动力 盘点:矿物质元素含量比较高的蔬菜 五花肉的营养价值及其食疗作用介绍 什么是维生素C及维生素C的生理作用 维生素C的测定方法—氧化还原滴定法 哪些人群需要多食用含维生素C的食物 维生素C的主要作用及人体推荐摄入量
- 评论列表
-
- 添加评论