Java.util.Arrays not working java 8

I recently updated using Java 8 on my computer for eclipse. I used to use Java 7. At first, the update seemed to work fine, since I could compile and run a simple- hello worldprogram. However, when I started importing previous projects that I worked on, I used the class java.util.Arrays, I got an error, for example Arrays could not be resolved. I had a similar problem with a class PriorityQueuesaying that

Type java.util.Comparatorcannot be allowed. It indirectly refers to the required files .class.

+4
source share
2 answers

- . , , :

" " enter image description here

"" enter image description here

JRE System Library ( ) .

enter image description here

""

"Alternate JRE", ( ) java 8 enter image description here

+2

, JDK Java 7, . Buildpathin Projects Java 8. .

, JDK.

+1

Source: https://habr.com/ru/post/1546561/


All Articles