How to Fix “Unsafe cannot be resolved to a type” in

  • 时间:2020-10-12 15:56:23
  • 分类:网络文摘
  • 阅读:172 次

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.

java-import-sun-misc-unsafe-cannot-be-resolved-to-a-type How to Fix "Unsafe cannot be resolved to a type" in Eclipse/Java? compiler IDE java

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 How to Fix "Unsafe cannot be resolved to a type" in Eclipse/Java? compiler IDE java

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) —

推荐阅读:
留意幸福角  钉扣子作文400字  清明随感作文  论威严的重要性  拥有一颗周全的心作文  我们一起来向笑猫学习——《笑猫日记》读后感  相亲  描写校园春色的作文  钉扣子作文200字  由大山和卵石的对话想起的作文500字 
评论列表
添加评论