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

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

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

推荐阅读:
深度剖析:电脑打板的全过程-故障排查  如何高效管理你的电脑数据传输?技巧大揭秘-故障排查  Win11开始菜单怎么关闭最近使用文件显示  本港国际台直播「高清」  TVB星河台直播「高清」  win7怎么装osx  win7怎么设置流畅  TVB娱乐新闻台直播「高清」  TVB直播-tvb翡翠台直播在线观看-tvb翡翠台在线直播网「高清」  高清翡翠台直播-TVB高清翡翠台在线直播「高清」 
评论列表
添加评论