I made a GAE project in Eclipse Luna. All worked fine until I added a JSP page.
Now, as I deploy new versions, no matters if the JSP is called or not, I get the following exception:
java.lang.UnsupportedClassVersionError: org/apache/jsp/web/jsp/RecordExtraCost_jsp : Unsupported major.minor version 52.0
The cause of this, reading the Internet, is due to a code compiled with Java 8 which at runtime is running on Java 7. I checked all the settings and everything looks fine. In fact, as I remove the JSP file and I redeploy, everything works again.
So the only hypothesis is that eclipse is using the JDK 8 to compile JSP. Is that possible? How do I fix this without removing the JDK 8 from my machine?
1) Install the JDK 1.7 on your PC.
2) On your eclipse Settings go to Java> Installed JREs.
3) Remove the 1.8 JDK/JRE and add the 1.7 version.
4) clean and build.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.