inblog logo
|
gyul
    환경 세팅

    [환경 세팅] 3. JDK 설치

    귤's avatar
    귤
    Jan 24, 2025
    [환경 세팅] 3. JDK 설치
    Contents
    1. JDK 압축 풀기2. 압축 푼 아래 폴더에 옮기기3. 명령 프롬프트 열기4. JDK bin 폴더 확인5. Java Path 적용하기6. 환경패스 적용
    💡
    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
     
    💡
    notepad(메모장)이 cmd(명령 프롬프트)에서 왜 실행됐는가?
    • notepad가 들어있는 파일이 Path 설정되어 있기 때문에 cmd에서 실행됨
    • Path : 경로, Path 설정하면 프로그램이 필요한 파일을 찾을 수 있는 위치를 알 수 있음.
    notion image
    notion image

    4. JDK bin 폴더 확인

    notion image
    💡
    cmd에서 java를 처음 실행했을 때 뜨는 문구 : java 는 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.
    • 해결방안 → Path 적용하기

    5. Java Path 적용하기

    • 검색 → 시스템 검색
    • 환경 변수 클릭
    • 시스템 변수에서 Path 더블 클릭
    • 파일 주소를 복사해서 새로 만들기를 클릭하고 붙여넣기
    notion image
     
    notion image
    notion image
    notion image
    notion image
    notion image

    6. 환경패스 적용

    • 재부팅
    • 명령 프롬포트 재시작
    • 잘 적용되었는지 확인할 수 있는 명령어
    notion image
     
    Share article

    gyul

    RSS·Powered by Inblog