1, eclipse project import jdk version is not the same solution 2, java reported javax.servlet.jsp can not be resolved to a type

A: eclipse project import jdk version is not the same solution

Reference Hirofumi:

https://www.cnblogs.com/chenmingjun/p/8472885.html

Select the Right Project -> Properties -> Build Path -> Libraries Select the column, remove (Remove) this library option,

  Then add the new library options:

  Add Library... --> JRE System Library --> next --> Execution environment --> Environments... --> 选择JavaSE-9(jdk-9.0.4) --> Apply and Close。

  Right or directly JRE System Library [JavaSE-1.7] -> Properties -> Execution environment -> Environments ... -> select JavaSE-9 (jdk-9.0.4) -> Apply and Close.

二:java报javax.servlet.jsp cannot be resolved to a type

Reference Hirofumi: Https://Blog.Csdn.Net/weixin_37997251/article/details/80701897

This error may be the reason the server comes servlet library is not imported. Right project properties, go to the Targeted Runtimes, select a server, such as Tomcat, click Apply, might be resolved.

 

Guess you like

Origin www.cnblogs.com/smartisn/p/11569807.html