CentOS/Redhat 6.2 tomcat7 java1.8 The type java.util.Map$Entry cannot be resolved.

CentOS/Redhat 6.2 tomcat7 java1.8 The type java.util.Map$Entry cannot be resolved.

My workaround:
# yum remove java-1.8.0-openjdk-headless-1.8.0.65-0.b17.el6_7.x86_64 java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64
# yum install java-1.7.0-openjdk
# yum install tomcat tomcat-admin-webapps tomcat-webapps
# yum install java-1.8.0-openjdk
# yum remove java-1.7.0-openjdk
# service tomcat restart

Tested on both centos 6.2 and redhat 6.2

I have no idea why doing it in this order solves the error. If someone could tell me, that’d be great.

Leave a comment