I recently updated to using Java 8 on my computer for eclipse. I had previously been using Java 7. At first the update seemed to work fine as I could compile and run a simple hello world-program. However, as I began to import previous projects that I had been working on that used the class java.util.Arrays, I got an error like Arrays could not be resolved. I have been having a similar problem with the PriorityQueue class saying that,
The type
java.util.Comparatorcannot be resolved. It is indirectly referenced from required.classfiles.




import java.util.Arrays; import java.util.Comparator;