title: Unable to compile class for JSP with Tomcat 8.5,Java 8 and Eclipse Photon 4.8.0
body: <p>I am using Java 8, Tomcat 8.5 and Eclipse Photon 4.8.0</p>
  
  <p>When I run tomcat server and hit JSP page it gives following error:</p>
  
  <blockquote>
    <p>SEVERE: Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException SEVERE: Servlet.service() for servlet [jsp] in context with path [/SpringMVC] threw exception [Unable to compile class for JSP: An error occurred in the generated java file: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files The type java.io.ObjectInputStream cannot be resolved. with root cause org.apache.jasper.JasperException: Unable to compile class for JSP:</p>
  </blockquote>
  
  <p>I have tried changing compilance to 1.7 in Java but issue still exists.</p>
  
  <p>Could you please help ?</p>