학원에서 실습했던 프로젝트를 깃허브로 가져왔더니 대참사가 일어났다

 

 

 

 

Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
 Build Path

 

1) tomcat 버전이 달라서 생긴 에러

다른 컴퓨터는 tomcat-8.5.45버전을 이용하였는데 집에서는 tomcat-8.5.46버전이었음

 

 

window -> preferences >server -> Runtime Environment -> Add 

톰캣을 새로 설치하고 서버를 생성한다

 

 

프로젝트 우클릭 Properties -> Project Facets -> Runtimes -> Apply

 

 

 

 

 

 

 

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

 

 

2) jstl 라이브러리 에러

jstl은 jsp를 위한 태그 라이브러리로 별도 설치가 필요하다

 

 

http://tomcat.apache.org/taglibs/standard/

 

본인은 1.2.5버전 받음

 

 

 

프로젝트 WebContent > WEB-INF > lib 폴더에 넣음

 

 

3) jre 버전 다름

 

 프로젝트 우클릭 Build Path > Configure Build Path 클릭

 

클릭하여 버전을 맞춰준다

+ Recent posts