본문 바로가기
ETC..

[M1 맥북 이클립스 오류] The superclass "javax.servlet.http.HttpServlet", determined from the Dynamic Web Module facet version (4.0), was not found on the Java Build Path

by NYO_O 2023. 5. 5.
반응형

새로운 workspace를 생성하고 server 생성 후 jsp 파일을 만들었더니, 오류가 발생했다.

The superclass "javax.servlet.http.HttpServlet", determined from the Dynamic Web Module facet version (4.0), was  not found on the Java Build Path

해당 프로젝트의 Java Build Path에서 서버를 찾지 못했을 때 발견하는 오류로 추정된다.

 

해결 방법은 간단하다.

 

1) 프로젝트에 마우스 오버 후 [Build Path] ➞ [Configure Build Path...]를 클릭하거나,

Properties 클릭 후 Java Build Path에 진입한다.

 

 

 

2) Libraries 탭에서 Modulepath 혹은 Classpath를 클릭 한 후 오른쪽의 [Add Library...] 버튼을 클릭한다.

 

 

 

3) Server Runtime 클릭 후 [Next >] 버튼을 클릭한다.

 

 

 

4) Apache Tomcat v버전을 클릭 후 [Finish]를 클릭한다.

 

 

 

5) Order and Export 탭에 진입하여 Server Runtime [Apache Tomcat v버전]의 체크박스를 활성화 상태로 변경 후 [Apply and Close] 클릭하면 오류가 사라진다.

 

 

 

 

반응형