min's devlog
[Java] NoClassDefFoundError 본문
문제
NoClassDefFoundError
JVM이 내부의 클래스 정의 데이터 구조(class definition data structure)에서 Class를 찾지 못했다는 것을 나타낸다.
해결
- 분명 존재하는 클래스인데 못 읽어온다.
- 이미 삭제한 테스트인데 테스트에서만 계속 뜬다.
이전 컴파일된 파일들과 현재 수행하는 테스트 사이에서 충돌이 생겨서 해당 오류가 발생하는 것이다. 그러므로
컴파일 된 class들의 폴더인 out을 제거하고 다시 빌드한다.
내부 주석
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition
of a class (as part of a normal method call or as part of creating a new instance using the
new expression) and no definition of the class could be found.
The searched-for class definition existed when the currently executing class was compiled,
but the definition can no longer be found.
'Error Note' 카테고리의 다른 글
[Java] 자주 발생하는 에러2 (0) | 2022.04.27 |
---|---|
[Java] 자주 발생하는 에러1 (0) | 2022.04.26 |
[Java] java.lang.NoSuchMethodError:main (0) | 2022.04.18 |
예약어 (0) | 2022.03.20 |
[Java] 나누기 연산 중 발생한 오류 (0) | 2022.03.20 |
Comments