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.
Navigate to the project and Select Project – Preferences – Java Compiler – Enable project specific settings – Compiler compliance level = 11 – Use default compliance settings (Ticked)
Apply and Close – then do a full clean rebuild, which will make the errors go away!
–EOF (The Ultimate Computing & Technology Blog) —
GD Star Rating
loading...
219 wordsloading...
Last Post: How to Find Second Minimum Node In a Binary Tree (Java)?
Next Post: The FizzBuzz Example in Magik Programming Language