Install IntelliJ IDEA
IntelliJ IDEA is a cross-platform IDE that provides consistent experience on the Windows, macOS, and Linux operating systems.
IntelliJ IDEA is available in the following editions:
Community Edition is free and open-source, licensed under Apache 2.0. It provides all the basic features for JVM and Android development.
IntelliJ IDEA Ultimate is commercial, distributed with a 30-day trial period. It provides additional tools and features for web and enterprise development. For pricing information, see Subscription options & Pricing.
For more information about the editions, see the comparison matrix.
System requirements
2 GB of free RAM
8 GB of total system RAM
Multi-core CPU. IntelliJ IDEA supports multithreading for different operations and processes making it faster the more CPU cores it can use.
2.5 GB and another 1 GB for caches
SSD drive with at least 5 GB of free space
Officially released 64-bit versions of the following:
Microsoft Windows 8 or later
macOS 10.14 or later
Any Linux distribution that supports Gnome, KDE , or Unity DE.
Pre-release versions are not supported.
Latest 64-bit version of Windows, macOS, or Linux (for example, Debian, Ubuntu, or RHEL)
You do not need to install Java to run IntelliJ IDEA because JetBrains Runtime is bundled with the IDE (based on JRE 17). However, to develop Java applications, a standalone JDK is required.
Older Linux distributions (before Ubuntu 18.04 and CentOS 8) don’t support the required JCEF version starting from IntelliJ IDEA version 2022.1. This means that components relying on the embedded browser will not work, for example, the Markdown HTML preview and the interactive debugger console.
Install using the Toolbox App
The JetBrains Toolbox App is the recommended tool to install JetBrains products. Use it to install and manage different products or several versions of the same product, including Early Access Program (EAP) and Nightly releases, update and roll back when necessary, and easily remove any tool. The Toolbox App maintains a list of all your projects to quickly open any project in the right IDE and version.
Install the Toolbox App
Download the installer .exe from the Toolbox App web page.
Run the installer and follow the wizard steps.
After you run the Toolbox App, click its icon in the notification area and select which product you want to install.
To install a specific version, click and select Available versions .
Log in to your JetBrains Account from the Toolbox App, and it will automatically activate the available licenses for any IDE that you install.
Install the Toolbox App
Download the disk image .dmg from the Toolbox App web page.
There are separate disk images for Intel and Apple Silicon processors.
Mount the image and drag the JetBrains Toolbox app to the Applications folder.
After you run the Toolbox App, click its icon in the main menu and select which product you want to install.
To install a specific version, click and select Available versions .
Log in to your JetBrains Account from the Toolbox App, and it will automatically activate the available licenses for any IDE that you install.
Install the Toolbox App
Download the tarball .tar.gz from the Toolbox App web page.
Extract the tarball to a directory that supports file execution.
For example, if the downloaded version is 1.17.7391, you can extract it to the recommended /opt directory using the following command:
Execute the jetbrains-toolbox binary from the extracted directory to run the Toolbox App.
After you run the Toolbox App for the first time, it will automatically add the Toolbox App icon to the main menu.
Select the product that you want to install.
To install a specific version, click and select Available versions .
Log in to your JetBrains Account from the Toolbox App, and it will automatically activate the available licenses for any IDE that you install.
You can use this shell script that automatically downloads the tarball with the latest version of the Toolbox App, extracts it to the recommended /opt directory, and creates a symbolic link in the /usr/local/bin directory.
If you installed IntelliJ IDEA via the Toolbox App, you can find the installation directory in the app: open the settings of the IDE instance in the Toolbox App, expand Configuration and look for the Install location field.
Standalone installation
Install IntelliJ IDEA manually to manage the location of every instance and all the configuration files. For example, if you have a policy that requires specific install locations.
There is a separate installer for ARM64 processors.
Run the installer and follow the wizard steps.
On the Installation Options step, you can configure the following:
Create a desktop shortcut for launching IntelliJ IDEA.
Add the directory with IntelliJ IDEA command-line launchers to the PATH environment variable to be able to run them from any working directory in the Command Prompt.
Add the Open Folder as Project action to the system context menu (when you right-click a folder).
Associate specific file extensions with IntelliJ IDEA to open them with a double-click.
To run IntelliJ IDEA, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin .
Extract the archive to the desired folder.
To run IntelliJ IDEA, use the launcher batch script or executable in the extracted directory under bin .
There are separate disk images for Intel and Apple Silicon processors.
Mount the image and drag the IntelliJ IDEA app to the Applications folder.
Run the IntelliJ IDEA app from the Applications directory, Launchpad, or Spotlight.
There is a separate tarball for ARM64 processors.
Extract the tarball to a directory that supports file execution.
For example, to extract it to the recommended /opt directory, run the following command:
Do not extract the tarball over an existing installation to avoid conflicts. Always extract it to a clean directory.
Execute the idea.sh script from the extracted directory to run IntelliJ IDEA.
To create a desktop entry, do one of the following:
On the Welcome screen, click Configure | Create Desktop Entry
From the main menu, click Tools | Create Desktop Entry
When you run IntelliJ IDEA for the first time, you can take several steps to complete the installation, customize your instance, and start working with the IDE.
For information about the location of the default IDE directories with user-specific files, see Directories used by the IDE.
Silent installation on Windows
Silent installation is performed without any user interface. It can be used by network administrators to install IntelliJ IDEA on a number of machines and avoid interrupting other users.
To perform silent install, run the installer with the following switches:
/S : Enable silent install
/CONFIG : Specify the path to the silent configuration file
/D : Specify the path to the installation directory
This parameter must be the last in the command line, and it should not contain any quotes even if the path contains blank spaces.
To check for issues during the installation process, add the /LOG switch with the log file path and name between the /S and /D parameters. The installer will generate the specified log file. For example:
Silent configuration file
You can download the default silent configuration file for IntelliJ IDEA at https://download.jetbrains.com/idea/silent.config
The silent configuration file defines the options for installing IntelliJ IDEA. With the default options, silent installation is performed only for the current user: mode=user . If you want to install IntelliJ IDEA for all users, change the value of the installation mode option to mode=admin and run the installer as an administrator.
The default silent configuration file is unique for each JetBrains product. You can modify it to enable or disable various installation options as necessary.
It is possible to perform silent installation without the configuration file. In this case, omit the /CONFIG switch and run the installer as an administrator. Without the silent configuration file, the installer will ignore all additional options: it will not create desktop shortcuts, add associations, or update the PATH variable. However, it will still create a shortcut in the Start menu under JetBrains .
Install as a snap package on Linux
You can install IntelliJ IDEA as a self-contained snap package. Since snaps update automatically, your IntelliJ IDEA installation will always be up-to-date.
To use snaps, install and run the snapd service as described in the installation guide.
On Ubuntu 16.04 LTS and later, this service is pre-installed.
IntelliJ IDEA is distributed via two channels:
The stable channel includes only stable versions. To install the latest stable release of IntelliJ IDEA, run the following command:
The —classic option is required because the IntelliJ IDEA snap requires full access to the system, like a traditionally packaged application.
The edge channel includes EAP builds. To install the latest EAP build of IntelliJ IDEA, run the following command:
When the snap is installed, you can launch it by running the intellij-idea-community , intellij-idea-ultimate , or intellij-idea-educational command.
To list all installed snaps, you can run sudo snap list . For information about other snap commands, see the Snapcraft documentation.
Что такое IDE
IDE — это среда разработки, где вы пишете код.
Почему лучше работать в IDE?
- ускоряет работу,
- есть подсветка ошибок,
- есть отладка по шагам,
- вызов документации,
- интеграция с Git и GitHub.
Рекомендуем IDE Intellij Idea, версия Community.
Как установить и настроить IntelliJ IDEA
Рекомендуем установить JDK 8 для тех, кто будет работать в Android Studio для разработки андроид-приложений (для студентов курса Android-разработчик). Все остальные могут использовать версию JDK 11.
Предварительно скачайте Java Development Kit по ссылке. Выберите версию для любой операционной системы. 

- Следуйте подсказкам установщика и подождите несколько минут.

Инсталлятор Java не выполняет настройку переменных окружения, поэтому придётся нам это делать вручную после установки.
JAVA_HOME — переменная, указывающая на директорию, в которую установлена Java. Программы её используют чтобы определить, где установлена Java.
Для создания данной переменной комбинацией клавиш Win+R открываем окно «Выполнить«. Набираем команду: «control /name microsoft.system« без кавычек.

Или откройте Панель управления -> Система.
Затем нужно выбрать «Дополнительные параметры системы» и в открывшемся окне «Свойства системы» нажимаем кнопку «Переменные среды». Если Вы ничего не меняли при установке JDK, то путь будет таким: «C:\Program Files\Java\ ».

Далее необходимо отредактировать значение переменной Path, добавив туда путь к директории, где находятся исполняемые файлы Java, то есть %JAVA_HOME%\bin

Будьте внимательны при редактировании PATH — она содержит важную информацию. Не надо ее целиком стирать и оставлять только свою строку. Надо просто добавить строку до каталога с JDK (+ строка «\bin»). После того, как были прописаны переменные, установку Java можно считать завершенной!
Чтобы проверить, успешно ли прошла установка, откройте командную строку. Для этого в меню Windows Пуск в строке поиска введите команду cmd и нажмите Enter. После этого откроется командное окно, в котором нужно ввести следующую команду.
java -version После чего, если отобразится информация об установленной версии java, то установка прошла успешно.

- Скачайте Community Edition-версию программы по ссылке. Можно выбрать версию для любой операционной системы — Windows, MacOS или Linux.

Установите, следуйте подсказкам инсталлятора и подождите несколько минут. 

При первом запуске программа предложит импортировать настройки. Так как установленных ранее версий не было, выберите Don’t import settings. 
Программа предложит выбрать цветовую схему и дополнительные возможности. Выберите подходящую схему и нажмите на кнопку «Skip Remaining and Set Defaults»

- Запустите программу. Когда откроется окно проекта, выберите Create New Project.

Далее откроется окно создания проекта. В левой части в качестве типа проекта выберем Java. Кроме того, в поле Project SDK с помощью кнопки New… установим папку, куда установлен JDK. 
После этого нажем на кнопку Next. Далее будет предложено отметить шаблон проекта. Command Line App — шаблон, который предполагает запуск приложения как консольного. Выберите его в качестве шаблона. На следующем шаге выберите папку, в которую нужно сохранить проект. 
В левой части мы можем увидеть структуру проекта. Все файлы с исходным кодом помещаются в папку src. По умолчанию она содержит каталог, который называется по имени пакета и который имеет один файл Main.java. В центральной части программы открыт исходный код программы в виде класса Main. В верхней части можно использовать зеленую кнопку Play и нажать ее — вы запустили первую скомпилированную программу. Либо это же самое можно сделать нажав на зеленую кнопку слева от строки с методом main.

И внизу IntelliJ IDEA отобразится окно вывода, где мы можем увидить результат работы нашей программы. 
Для создания нового класса необходимо нажать правой кнопкой на имя пакета и выбрать New -> Java Class 
Name already in use
javaqa-homeworks / intro / idea.md
- Go to file T
- Go to line L
- Copy path
- Copy permalink
- Open with Desktop
- View raw
- Copy raw contents Copy raw contents
Copy raw contents
Copy raw contents
Установка IntelliJ IDEA
Важно: если у вас что-то не получилось, тогда оформите, пожалуйста, Issue по установленным правилам.
Шаг 1. Перейдите по адресу https://www.jetbrains.com/toolbox/app/, выберите необходиму ОС и нажмите кнопку Скачать.

Шаг 2. Запустите скачанный файл и нажмите кнопку Установить.

Шаг 3. Дождитесь завершения установки и нажмите кнопку Готово (флажок «Запустить JetBrains Toolbox» должен быть выставлен).

Шаг 4. Иконка Toolbox появится в системном трее, кликните на неё левой кнопкой мыши.

Шаг 5. Прочитайте лицензионное соглашение и нажмите кнопку Accept.

Шаг 6. Нажмите Install для IntelliJ IDEA Community.

Шаг 7. Дождитесь завершения установки и нажмите на кнопку запуска IntelliJ IDEA Community.

Шаг 8. Если вы до этого не использовали IntelliJ IDEA и у вас нет сохранённых настроек, выберите опцию «Do not import settings», затем кнопку OK.

Шаг 9. Согласитесь с Privacy Policy и нажмите кнопку Continue.

Шаг 10. При желании вы можете отправлять данные об использовании IntelliJ IDEA в компанию IDEA: выберите любую из опций: Send Usage Statistics — отправлять, Don’t send — не отправлять.

Шаг 11. Выберите по своим предпочтениям тему оформления — тёмную Darcula или светлую Light — и нажмите на кнопку Skip Remaining and Set Defaults.

Шаг 12. Дождитесь появления стартового окна и выберите Create New Project.

Шаг 13. Удостоверьтесь, что при выборе Java в списке есть версия 11 (java version «11.x.x») или другая, установленная на предыдущих лекциях версия Java, и нажмите на кнопку Next.

Шаг 14. Нажмите Next.

Шаг 15. Оставьте значение полей по умолчанию, предварительно убедившись, что в пути к проекту нет никаких кириллических символов или пробелов. Если же они там есть — измените путь с помощью кнопки . , например, на C:/Projects/untitled ) и нажмите Finish.

Шаг 16. Чтобы не получать при каждом запуске подсказок по использованию IntelliJ IDEA, снимите флажок Show tips on startup и нажмите кнопку Close.

Шаг 17. При первом запуске IntelliJ IDEA понадобится какое-то время, чтобы проиндексировать вашу установку JDK, подождите, пока все процессы завершатся.

Шаг 18. В панели проекта ( Alt + 1 ) раскройте структуру каталогов, на каталоге src щёлкните правой кнопкой мыши и выберите New -> Java Class.

Шаг 19. В открывшемся окне введите Main и нажмите клавишу Enter.

Шаг 20. Замените содержимое открывшегося файла кодом с лекции, чтобы текущее состояние соответствовало тому, что вы видите на экране.

Шаг 21. Нажмите на зелёную стрелку на первой строке, выберите Run ‘Main.main()’.

Шаг 22. Удостоверьтесь, что вывод программы соответствует скриншоту.

Поздравляем! Вы успешно установили IntelliJ IDEA и запустили первое Java-приложение.