Как поменять версию java в intellij idea
Перейти к содержимому

Как поменять версию java в intellij idea

  • автор:

Изменение версии Java в Idea

Author24 — интернет-сервис помощи студентам

Смена версии JRE в IntelliJ IDEA
Недавно столкнулся с проблемой, у меня в IDEA не работает добавление нового компонента в palette .

Определение версии Java и версии браузера
Поступила интересная задача. Есть необходимость получать, оперативно, от клиента информацию о.

Java IDEA + h2
Всем доброго. В IntelliJ IDEA делаю подключение к БД H2 (h2-1.3.176) при запуске в самой idea все.

Java intellij idea
Здравствуйте. Буду рад ответу, как в intelij idea найти класс system? И еще, в java все библиотеки.

Автоматизируй это!

Эксперт Python

7102 / 4606 / 1214
Регистрация: 30.03.2015
Сообщений: 13,218
Записей в блоге: 29

UltraHybrid, а там разве если нажать на выпадающий список Project Language Level (чуть ниже того, что на скрине) нельзя выбрать версию нужную?

Change the boot Java runtime of the IDE

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.

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

  1. In the main menu, go to Help | Find Action or press Control+Shift+A .
  2. Find and select the Choose Boot Java Runtime for the IDE action.
  3. Select the new desired runtime and click OK . If necessary, you can change the location where IntelliJ IDEA will download the selected runtime.
  4. Wait for IntelliJ IDEA to restart with the new runtime.

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.

Choose Boot Runtime for the IDE

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 IDEA_JDK environment variable with the path to the desired JDK home directory.

Выбор версии Java в IntelliJ IDEA

Для того чтобы выбрать версию Java в IDEA нужно вызвать окно свойств модуля, кликнув на нём правой кнопкой мышки и выбрав в контекстном меню пункт Open Module Settings:

Java IDEA

В открывшемся диалоговом окне нужно выбрать пункт SDKs в дереве слева.

IDEA Select Java version

На изображении цифрами отмечено:

  1. SDKs
  2. Кликните на плюск для добавления новой JDK.
  3. Выберите версию JDK из списка.

Кликните на “ОК” и подождите, пока IDEA пересоберёт ваш проект.

Как изменить версию проекта на Java в Intellij Idea?

Я переустановил Java на свой ноутбук с другой версией, и после этого мой проект не может работать хорошо в Intellij Idea. Поэтому я хочу знать, как изменить версию проекта на Java в Intellij Idea? intellij-idea

Поделиться Источник 27 февраля 2018 в 22:48

2 ответа

Capture

  1. Убедитесь, что компилятор правильно выбрал версию: Вам нужно перейти в Настройки > Компилятор > Компилятор Java и обновить Целевую версию байткода Проще: дважды нажмите Shift и введите Компилятор Java, что приведет вас к этому.
  2. Настройте проект SDK Перейдите в Структура проекта > Проект > Проект SDK и добавьте ссылку на локальный файл Java

Поделиться 28 февраля 2018 в 11:00

Добавьте свои новые SDKS и выберите правильный SDK для вашего проекта.

Поделиться 27 февраля 2018 в 22:53

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *