본문 바로가기

Eclipse/Debug

이클립스(eclipse) Error occurred during initialization of boot layer 오류 원인, 해결 방법

오류 문구

Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\meata\eclipse-workspace\NewTest\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: TestTest.class found in top-level directory (unnamed package not allowed in module)

 

오류 원인

클래스 파일이 적절한 디렉토리구조에 위치하지 않을 때 발생한다. "TestTest.class"파일이 상위 레벨 디렉토리에 있다고 쓰여있다. 

 

해결 방법

클래스를 적절한 패키지에 위치시키거나, "module-info"를 삭제한다.