환경 세팅
- 헤딩 버전의 JDK를 다운로드 한다.
링크 : Java Downloads | Oracle 대한민국
Download the Latest Java LTS Free
Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.
www.oracle.com
Window : MSI ⇒ 어드민 권한으로 설치됨.
MAC OS : (구 MAC) jdk-21_macos-x64_bin.dmg (Apple Sillicon) aarch64 선택 할 것.
2. 사용할 IDE(통합개발환경)을 설치한다.
*Eclipse, vscode …등
링크 : https://www.eclipse.org/downloads/packages/
- 환경변수 셋팅
- 윈도우
- 실행 창 → sysdm.cpl(시스템 속성) → 환경 변수
- JAVA_HOME = C:\Program Files\Java\jdk-21,
- CLASSPATH = %JAVA_HOME%\\lib
- PATH ⇒ %JAVA_HOME%\bin
* MAC OS
(아래 2행 추가) export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home export PATH=${PATH} : /Library/Java/VirtualMachines/jdk-20.jdk/Contents/Home source .bash_profile (적용) java -version (확인) |
3. Eclipse 실행 및 프로젝트 생성
왼쪽에 탭에 만들어지며 Library와 src, bin 디렉토리가 생성되며
bin 폴더는 가려져 있다.
bin → 클래스 파일들이 저장됨. ( ***.class)
src → 개발자가 작성하는 코드 파일이 저장됨. (**.java)
기본적인 환경세팅이 끝나고 코딩하기 전 아래 사항을 준비한다.
1. 공식 교재
[The Java® Language Specification]
https://docs.oracle.com/javase/specs/jls/se21/html/index.html
The Java® Language Specification
James Gosling Bill Joy Guy Steele Gilad Bracha Alex Buckley Daniel Smith Gavin Bierman
docs.oracle.com
2.공식 DOC
SE 21버전 : Overview (Java SE 21 & JDK 21)
Overview (Java SE 21 & JDK 21)
This document is divided into two sections: Java SE The Java Platform, Standard Edition (Java SE) APIs define the core Java platform for general-purpose computing. These APIs are in modules whose names start with java. JDK The Java Development Kit (JDK) AP
docs.oracle.com
SE 8버전 : Java Platform Standard Edition 8 Documentation
Java Platform Standard Edition 8 Documentation
<!-- commenting out JDK 7-specific links; will replace with corresponding JDK 8 links as we get closer What's New in Documentation This section will contain information about new features in the Java platform. -->
docs.oracle.com
3. 따뜻한 커피
처음 개발이라면,
Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting Started)
위 링크의 튜토리얼을 읽어 볼 것을 권장함.