java
eclipse module import 및 export 방법
킨글
2022. 9. 30. 14:20
혹은 jar 파일 export하고 import로 사용 가능하다.
1. export
import 방법
- 프로젝트 우클릭 -> Configure Build Path...
- Libaries 탭으로 이동
- Add External JARs... 선택
- import 할 파일 선택
- my_module_b.jar가 추가됨.
- Apply and Close 버튼 클릭
파일 내에서 하는 방법
모듈 export
module my_module_b {
exports pack3;
exports pack4;
}
모듈 import
module my_application_2 {
requires my_module_a;
requires my_module_b;
}