본문 바로가기
개발 수업/WEB

이클립스 jsp파일 오류(The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path)

by 오늘 하루s 2023. 6. 22.
728x90
더보기

Day38. 230622

이클립스 jsp파일 오류

오류 문구>

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

 

해결 방법>

 

해당 프로젝트에서 마우스 오른쪽 버튼 클릭 후

Build path > Configure Build Path 클릭

 

 

 

Java Build Path > Libraries > Add External JARs.. 클릭 후

톰캣 설치한 경로에서 lib 폴더를 선택한다.

 

 

 

lib 폴더에서 jsp-api와 sevlet-api를 선택해 추가해준다.

 

 

 

 

그러면 다음과 같이 빨간 밑줄이 사라지며 오류가 해결된 모습을 볼 수 있다.

 

 

728x90

'개발 수업 > WEB' 카테고리의 다른 글

[CSS] 폼(form)  (0) 2023.06.22
[HTML,CSS] 목록을 만드는 태그, 목록 스타일  (0) 2023.06.22
[CSS] CSS박스모델  (0) 2023.06.21
[CSS] background  (0) 2023.06.21
[CSS] 텍스트 관련 스타일  (0) 2023.06.21