Intellij Idea 简明教程

Intellij Idea - Installation and Configuration

在本节中,我们将了解如何安装和配置 IntelliJ IDEA。这个过程的第一步是从选择版本开始。根据您的需要,您可以下载社区版或旗舰版。顾名思义,社区版绝对免费,并且我们也可以用它进行商业开发。然而,旗舰版是付费版本,我们可以免费评估 30 天。

In this chapter, we will understand how to install and configure IntelliJ IDEA. The first step of the process starts with choosing the edition. As per your requirements, you can download community or ultimate edition. As name suggests, community edition is absolutely free and we can use it for commercial development as well. However, ultimate edition is paid version and we can evaluate it freely for 30 days.

Installation on Windows

IntelliJ 与 2003 年之前的几乎所有版本的 Windows 兼容。具体清单如下:Windows 10/8/7/Vista/2003/XP。建议在 Windows 上安装 IntelliJ 之前关闭所有其他应用程序。

IntelliJ is compatible with almost all versions of Windows prior to 2003. A comprehensive list will be: Windows 10/8/7/Vista/2003/XP. It is recommended that you shut down all other applications before you install IntelliJ on Windows.

System Requirements

  1. A minimum 2 GB of RAM capacity is recommended for seamless performance.

  2. For better visualization, 1024x768 screen resolution is recommended.

  3. Minimum 300 MB disk space for installation and additional 1 GB for cache.

Downloading and Installation

  1. Downloading − You can download windows installer from their official website.

  2. Installation − Let us begin with the installation followed by the configuration steps. Installation of IntelliJ is similar to other software packages. Just double-click on the installer and follow the on-screen instructions to complete the installation process.

Installation on Linux

要在 Linux 平台上安装 IntelliJ,您需要注意,它不捆绑 32 位 JDK,因此建议使用 64 位系统。

For installation of IntelliJ on Linux platforms, you need to note that a 32-bit JDK is not bundled, so a 64-bit system is recommended.

System Requirements

  1. GNOME, KDE or XFCE desktop environment

  2. Minimum 2 GB of RAM is recommended for seamless usage

  3. 300 MB of disk space for installation and addition 1 GB for caches

  4. For better visualization, 1024x768 screen resolution is recommended

Downloading and Installation

  1. Downloading − You can download IntelliJ for Linux from their official website.

  2. Installation − We have downloaded tar.gz bundle. Note that in our case bundle’s name was ideaIC-2017.2.5.tar.gz. It may change with the edition/version. Please use the appropriate bundle name.

First extract it using following command:
$ tar xvf ideaIC-2017.2.5.tar.gz
It will create new directory with idea-IC-172.4343.14 name.
Now change directory to idea-IC-172.4343.14/bin/ and execute idea.sh shell script as shown below:
$ cd idea-IC-172.4343.14/bin/
$ ./idea.sh
Follow on-screen instructions to complete installation procedure.

Configure IntelliJ

在两个平台上的配置步骤是相似的。要开始配置,请启动 IntelliJ 应用程序。或者,您可以在此向导中 import 现有配置。单击“下一步”按钮继续。

The configuration steps are similar on both platforms. To begin configuration, launch IntelliJ application. Optionally, you can import the existing configuration from this wizard. Click on the next button to continue.

Step1 − 如果您正在使用旗舰版,则会弹出一个许可证激活窗口。选择免费评估选项,然后单击评估按钮,如下图所示。

Step1 − If you are using the ultimate edition, then a license activation window will pop-up. Select evaluate for free option and click on the evaluate button as shown in the following image.

license  activation

Step 2 − 接受许可协议以继续,然后按照屏幕上的说明启动 IntelliJ。您将看到 IntelliJ 的欢迎屏幕。

Step 2 − Accept the license agreement to proceed and follow on-screen instruction to start IntelliJ. You will see the Welcome screen of IntelliJ.

Step 3 − 现在,是时候使用 IntelliJ 配置 Java Development Kit(以下简称 JDK)了。如果尚未安装JDK,请按照 here 中的说明进行操作。

Step 3 − Now, it is time to configure the Java Development Kit (hereafter, we will refer to it as JDK) with IntelliJ. If JDK is not installed already then follow the instruction as in here.

  1. On the Welcome screen, click on ‘configure’

  2. Select ‘project defaults’ from the drop-down list

  3. Select the ‘project structure’ option

project structure
  1. Select the ‘SDKs’ option from the ‘platform settings’ menu.

  2. Click on the ‘plus’ icon and select the ‘JDK’ option.

  3. Select JDK’s home directory and follow the on-screen instructions.

platform settings