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

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

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

推荐阅读:
自恋而自信的人生  襄王不许请隧原文及翻译  召公谏厉王止谤原文及翻译  百家讲坛系列节目《于丹〈论语〉心得》MP3蓝奏云下载  吴许越成原文及翻译  诗词名句鉴赏:我所思兮在太山,欲往从之梁父艰。  诗词名句鉴赏:大风起兮云飞扬,威加海内兮归故乡。  百家讲坛系列节目《于丹〈庄子〉心得》MP3蓝奏云下载  诗词名句鉴赏:男儿爱后妇,女子重前夫。  诗词名句鉴赏:居异土国兮心内伤,愿为黄鹄兮归故乡。 
评论列表
添加评论