Sumit Singh
Sumit Singh

Reputation: 229

Getting Error The type java.util.Map$Entry cannot be resolved

Getting Below error on Jsp when added below Code..

Code : Map<Long, String> topMenuMap = new HashMap<Long, String>();

Error : The type java.util.Map$Entry cannot be resolved.

It is indirectly referenced from required .class files

Upvotes: 2

Views: 3186

Answers (2)

j23
j23

Reputation: 160

here they say to upgrade Tomcat 7 to higher version to be compatible with Java 8. Minimum version is Tomcat 7.0.54

https://www.howopensource.com/2015/07/unable-to-compile-class-for-jsp-the-type-java-util-mapentry-cannot-be-resolved/

Upvotes: 0

Anupam Biswas
Anupam Biswas

Reputation: 66

import java.util.* in JSP page <%@ page import="java.util.*" %>

Upvotes: 3

Related Questions