본문 바로가기
Tools/Eclipse & STS

[Eclipse] The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

by 썸머워즈 2020. 5. 7.
반응형

- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path -


에러가 발생한 경위는 별거없고

그냥 SVN에서 프로젝트롤 체크아웃 받았더니 발생한 에러이다

 

정확하게 어떤 경우에 발생하는 에러인지는 잘 모르겠으나

일단 해결 방법은 존재하니 그 방법에 대해 기록해둔다.

 

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

에러가 발생한(프로젝트에 에러 표시가 난) 프로젝트를 선택하고

[마우스 우클릭] - [Properties]

를 클릭해주자.



그러면 Properties 창이 나올텐데 여기서

[Project Facets] - [Java 선택] - [우측 Runtimes 탭 선택] - [Apache Tomcat 체크] - [Apply]

순으로 진행해주면

 

신기하게도 빨간 에러표시가 사라지며

해당 에러가 발생하지 않는다.



왜 생긴 에러인지는 모르겠지만

일단 이렇게 넘어간다.

반응형


댓글

TOP