이클립스 설치시 build path Warning이 발생할 경우 해결방법입니다.
- 문제
Select the fix for 'Build path specifies execution environment CDC-1.1/Foundation-1.1. There are no JREs installed in the workspace that are strictly compatible with this environment. '.
Select the fix for 'Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment. '.
Select the fix for 'Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. '.
Select the fix for 'Build path specifies execution environment J2SE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. '.
- 해결방법
이 경고는 JDK Build path 실행환경 설정이 올바르지 않을경우 발생합니다.
jdk1.7.0_60를 설치했을 경우 CDC-1.1/Foundation-1.1 이 아닌 JavaSE-1.7 (jre7)을 사용해야만 이 경고가 사라집니다.
특별히 변경하지 않아도 경고이기 때문에 프로그램 구동에는 문제 없지만, 깔끔한 상태로 진행을 원할 경우 변경해주시면 될것 같습니다.
STEP 1. 왼쪽에 기본적으로 위치하는 Project Explorer창에서 마우스 우클릭 → Build Path → Configure Build Path
STEP 2. 아래와 같은 창이 팝업되면 JRE System Library [CDC-1.1/Foundation-1.1]을 더블클릭
STEP 3. Excution environment 우측에 콤보박스에서 JavaSE-1.7 (jre7)를 선택
(여기서 선택하는것은 자신이 설치한 JDK버전 'jre5'면 1.5선택, 'jre6'면 1.6선택)
→ Finish버튼 클릭
STEP 4. Warning 메세지 확인
→ 에러 발생하지 않을 경우: 완료!
→ 에러 발생할경우 경우: 실행 환경이 바뀌므로 코딩하는 부분에 있어서 다른 경고나 에러가 발생함.
경우에 따라 다르지만 보통 바로 수정가능
STEP 5. 경고가 있는 부분에 마우스를 가져다대면(클릭아님) 수정할 수 있는 기능이 팝업됨 → Fix 클릭
STEP 6. 완료 확인
'IT TMI > 개발 IT' 카테고리의 다른 글
[개발 IT] 이클립스 설치 방법 (0) | 2019.11.08 |
---|---|
[개발 IT] JDK 설치 방법 (0) | 2019.11.08 |
[개발 IT] JRE 설치 방법 (0) | 2019.11.08 |
[개발 IT] JDK, JRE 의미 (0) | 2019.11.08 |
[개발 IT] 이클립스 꼭 확인해야 할 단축키 (0) | 2019.11.08 |