Btc Sources
Btc Sources

Reputation: 2041

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

I've a JSP file which needs the class Map, which belongs to javax.script (if I'm not wrong).

I've imported it, but I'm getting the following error:

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

After doing a bit of research, I think it's because I need to have a jar file which contains it, but I don't know how can I find it (neither to which jar, nor the place to download it).

Could you explain me how to find it (as it would be useful for future cases) or provide a link?

Thank you so much

Upvotes: 0

Views: 2182

Answers (1)

jCoder
jCoder

Reputation: 2319

(Just for the sake of completeness.)

One reason might be that Tomcat 6 does not run with Java 8 (nor do some versions of Tomcat 7; I stumbled over that problem myself once): https://stackoverflow.com/a/21322569/694804

So, it is highly suggested to use a recent version of Tomcat 7.0.x (or even 8) when using Java 8.

Upvotes: 1

Related Questions