Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The type java.util.Comparator cannot be resolved

Tags:

java

The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files

I recently installed Java 8. While executing an application, I got above mentioned error can you please help me.

I am using:

  1. Java - jdk1.8.0_51
  2. Tomcat - apache-tomcat-5.5.26
like image 932
Madhu Avatar asked Aug 12 '15 04:08

Madhu


1 Answers

Assuming you are using some IDE, like Eclipse. When you are using jdk 1.8 with IDE, you need to update your IDE to support version 1.8.

It does not matter you are using new jdk's feature or not, but compiler has to load new JRE files in order to compile your project.

like image 138
kandarp Avatar answered Oct 09 '22 04:10

kandarp