본문 바로가기
Error

[Error] The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this project 해결방법

by GoodDayDeveloper 2021. 9. 8.
반응형

이클립스의 프로젝트를 이용하는데 갑자기 problems에서 해당 프로젝트에 아래와 같은 에러가 발생했습니다.

잘되던 프로젝트가 갑자기 이런현상이...

 

The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this project

 

 

구글번역하니 아래와 같더군요..

 

빌드 경로가 불완전하여 프로젝트가 빌드되지 않았습니다. javax.servlet.http.HttpServletRequest에 대한 클래스 파일을 찾을 수 없습니다. 빌드 경로를 수정한 다음 이 프로젝트를 빌드해 보세요.

 

 

무언가의 설정때문에 프로젝트의 빌드가 되지 않아 생긴 에러 메세지입니다.

이럴땐 자바 버전과 톰켓 버전을 살펴주면 됩니다.

 


1. 프로젝트의 설정에 들어갑니다.

프로젝트 우클릭 > Properties

 

 

2. Project Facets에서 자바 버전과 해당 톰캣을 설정(체크)해줍니다.

 

Properties > Project Facets > 자바버전 확인

Properties > Project Facets > Runtimes > 해당 톰켓 버전 확인(체크)

 

 

반응형

댓글