1. 터미널에서 자바 버전 확인
java --version
2. 원하는 버전의 자바 다운 받기
https://www.oracle.com/java/technologies/downloads/#jdk17-windows
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
windows 사용자의 경우 x64 MSI Installer 다운 받기. 확장자가 msi인 파일로 다운 받는다.
msi 파일을 다운 받으면 자동 설치 가능
다운이 완료 되면 다운 받은 파일 더블 클릭 후 자바 설정
3. IntelliJ 환경 설정
메뉴에서 [File] - [Project Structure] - [Project] 로 이동 후 SDK 버전과 Language Level을 원하는 버전으로 변경
[File] - [Project Structure] - [Modules] 의 Language Level도 원하는 버전으로 변경
[File] - [Settings] - Gradle 에서 Gradle JVM을 원하는 버전으로 변경
4. 자바 버전 확인
'Java' 카테고리의 다른 글
[자바/오류] incompatible types: char cannot be converted to string (0) | 2024.07.04 |
---|---|
[Java/자바] 큰 정수 입력 받기 - BigInteger (0) | 2022.11.29 |
댓글