As a Java application, IntelliJ IDEA requires a Java runtime environment (JRE). By default, IntelliJ IDEA uses JetBrains Runtime (a fork of OpenJDK), which is included with the IDE. JetBrains Runtime fixes various known OpenJDK and Oracle JDK bugs, and provides better performance and stability. However, in some cases you may be required to use another Java runtime or a specific version of JetBrains Runtime. Show Changing the boot Java runtime may cause unexpected problems. Do not change it unless you were specifically asked to do so by JetBrains support. The runtime for IntelliJ IDEA is not the same runtime used for your applications. Define an SDK for each of your projects, which includes the necessary development and runtime environment. Switch the Java runtime used to run IntelliJ IDEA
When you open the Choose Boot Runtime for the IDE dialog for the first time, it may take a while to load the list of JetBrains Runtime builds from the server. To use a different Java runtime available on your computer, select Add Custom Runtime… under Advanced in the New field. IntelliJ IDEA lists all the JDKs and JREs that it was able to detect. Select one or click Add JDK to specify the location of the desired Java home directory. To reset back to the default runtime that the IDE initially used, click Use Default Runtime. When using a non-default Java runtime for IntelliJ IDEA, it will not update with the IDE and may not be compatible with the new version. Reset back to the default runtime when updating IntelliJ IDEA to get the latest compatible version of JetBrains Runtime. The path to the selected runtime is stored in the idea.jdk or idea64.jdk file in the IntelliJ IDEA configuration directory. If there are problems with the selected runtime, you can delete this file to revert to the default runtime. You can also override the runtime used for IntelliJ IDEA by adding the
Java IDE인 IntellJ에서 JDK버전을 바꾸는 방법(m1 macOS 전용)
1. IntelliJ에서 JDK버전 바꾸기
2. 원하는 JDK버전이 없으면 다운로드 받기아래 링크 접속
3. 터미널에서 환경변수 설정하기1) JDK 설치 경로 이동
2) JDK 폴더명 확인 후 경로 복사
3) bash_profile 편집
위 명령어를 입력하면 bash_profile 파일을 편집할 수 있다. vi 명령어 정리
4) zshrc 편집
5) 환경변수 설정 변경 반영
Java 버전 확인
|