Hex cannot be resolved to a type

Jmnote (토론 | 기여)님의 2017년 5월 22일 (월) 13:48 판 (새 문서: ;The import org.apache.commons.codec cannot be resolved ;Hex cannot be resolved to a type ==문제상황== * 다음 코드에서 오류 발생 <source lang='java'> import org.apache....)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
The import org.apache.commons.codec cannot be resolved
Hex cannot be resolved to a type

1 문제상황

  • 다음 코드에서 오류 발생
import org.apache.commons.codec.binary.Hex;
... (생략)
new Hex();

2 조치

  • pom.xml의 dependencies 내부에 아래 내용 추가
<dependency>
    <groupId>commons-codec</groupId>
    <artifactId>commons-codec</artifactId>
</dependency>
→ 잠시후 해결된다...
→ Package Explorer의 Maven Dependecies를 확인해보면 commons-codec-1.10.jar 가 추가되어 있다.

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}