inblog logo
|
jay0628
    환경세팅

    [환경세팅] 3. JDK 설치

    김주희's avatar
    김주희
    Jan 24, 2025
    [환경세팅] 3. JDK 설치
    Contents
    1. JDK 압축 풀기2.압축 푼 폴더 아래 폴더에 옮기기3. 명령 프롬프트 열기4. JDK bin 폴더 확인5. 환경 path 적용
    💡
    Java Develop Kit

    1. JDK 압축 풀기

    Archived OpenJDK GA Releases
    This page is an archive of previously released builds of the JDK licensed under the GNU General Public License, version 2, with Classpath Exception.
    Archived OpenJDK GA Releases
    https://jdk.java.net/archive/
    notion image

    2.압축 푼 폴더 아래 폴더에 옮기기

    notion image
     

    3. 명령 프롬프트 열기

    notion image
     
    notion image
    notion image
     
     
    💡

    명령 프롬프트에서 notepad와 hello의 실행 차이 이유?

    • 명령 프롬프트에 hello를 실행하려고 하면 ‘내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.’라는 문구와 함께 실행되지 않는다. 여기서 내부는 현재 폴더, 외부는 환경 변수(path) 상의 경로, 배치 파일은 실행 파일을 의미한다. 즉, 현재 폴더 상에도 path에도 없는, 실행 불가능한 프로그램 혹은 파일이기에 hello가 실행되지 않는다.
    • notepad의 경우 시스템 환경 변수에 C:\Windows\System32가 설정되어있고 notepad는 C:\Windows\System32 아래에 위치하기 때문에 실행이 된다.
    • 내외부 중 우선순위는 외부인 path에 있다. path에서 먼저 찾고 내부에서 찾는다.
     

    4. JDK bin 폴더 확인

    notion image
     
    notion image
    notion image
    notion image
    notion image

    5. 환경 path 적용

    • 재부팅
    • 명령 프롬프트 재시작
    notion image
     
    Share article

    jay0628

    RSS·Powered by Inblog