Tomcat报错 HTTP Status 500 – Internal Server Error?

Question: After writing Servlet implementation class and configured in web.xml servlet information in IDEA, the written page views appear the following errors:

 

problem analysis:

As can be seen by Root Cause is a problem Jdk version does not match: a version mismatch when my version of the compiler and runtime compiler version is JDK11, run-time version is JDK8.

Java Virtual Machine made provisions, jdk1 version number is 45, can only be performed between the bytecode [45.0-46), JDK8 range of executable code between [45.0-53), my version is 55, so is JDK11, then only after the version of JDK11

Originally execution. So will the error.

Solution: The SDK version of IDEA was changed to 8.

 

 

 

 

 

 Note: here will find my tomcat project reported error, can not find SDK11, so guess tomcat project in the JDK configuration information, and sure enough you can find and read JDK_8 in tomcat.iml, the problem is solved.



Guess you like

Origin www.cnblogs.com/iceywu/p/12150257.html