Hex cannot be resolved to a type

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 }}