Download and Install IntelliJ IDEA
What is IntelliJ IDEA?
IntelliJ IDEA is a full-featured Integrated Development Environment (IDE) built by JetBrains. It is the most widely used IDE for Java development, offering deep code intelligence, built-in tools, and powerful refactoring capabilities.
Unlike a plain text editor, an IDE combines your code editor, compiler, debugger, version control, and build tools into a single window — making development faster and less error-prone.
💡 Why IntelliJ? IntelliJ IDEA understands your code — it detects errors as you type, suggests fixes, auto-completes intelligently, and lets you refactor safely across your entire codebase.
Community Edition vs Ultimate Edition
IntelliJ IDEA comes in two editions. For Java beginners and most backend developers, Community Edition is sufficient.
Community Edition
- Full Java & Kotlin support
- Intelligent code completion
- Debugger & profiler
- Git / VCS integration
- Maven & Gradle support
- Unit testing (JUnit, TestNG)
- Android development
Best for: Learning Java, backend development, Android.
Ultimate Edition
- Everything in Community
- Spring / Jakarta EE support
- Database tools & SQL editor
- JavaScript / TypeScript
- Docker & Kubernetes
- HTTP client
- Microservices tools
Best for: Enterprise full-stack development.
⚠️ Students and educators can get IntelliJ IDEA Ultimate for free through the JetBrains Student License program using a university email.
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| RAM | 2 GB free | 8 GB or more |
| Disk Space | 3.5 GB | SSD with 5+ GB |
| OS | Windows 10, macOS 12, Linux (glibc 2.17+) | Latest stable OS |
| Screen Resolution | 1024 × 768 | 1920 × 1080 |
| JDK | Bundled (no separate install needed) | JDK 21 recommended |
📌 IntelliJ IDEA ships with a bundled JDK for running the IDE itself. You can still configure any external JDK (17, 21, etc.) for your projects.
Step 1 — Download IntelliJ IDEA
Visit
https://www.jetbrains.com/idea/download/
and select your operating system (Windows / macOS / Linux).
Click Download under Community Edition (free). The Ultimate edition download starts a 30-day trial.
The file will be named something like
ideaIC-2024.1.4.exe (Windows),
ideaIC-2024.1.4.dmg (macOS), or
ideaIC-2024.1.4.tar.gz (Linux).
Step 2 — Install IntelliJ IDEA
Install on Windows
Double-click the downloaded
.exe file. If prompted by User
Account Control, click Yes.
Accept the default path
C:\Program Files\JetBrains\IntelliJ IDEA Community
Edition <version>
or choose your own. Click Next.
On the Installation Options screen, check these boxes:
- Create Desktop Shortcut — adds an icon to your desktop
- Add "Open Folder as Project" — lets you right-click any folder to open it in IntelliJ
-
Add launchers dir to PATH — lets you run
ideafrom terminal - .java association — optional, opens .java files in IntelliJ by default
Click Install and wait for completion. Choose Reboot now if prompted (needed for PATH changes to take effect).
Open it from the Start Menu or Desktop shortcut. On first launch, import settings if migrating from another IDE, or choose Do not import settings.
Install on macOS
Double-click the downloaded
.dmg file. A window opens
showing the IntelliJ IDEA icon and your Applications folder.
Drag the IntelliJ IDEA CE icon into the Applications folder.
Open Finder ? Applications ? IntelliJ IDEA CE and double-click. On first open, macOS may warn it's from the internet — click Open.
Inside IntelliJ go to
Tools ? Create Command-line Launcher to enable
opening projects from terminal with
idea .
Install on Linux
Option A — Snap (Ubuntu)
sudo snap install intellij-idea-community --classic
Then launch with
intellij-idea-community from the
terminal or your app menu.
Option B — Manual tar.gz
sudo tar -xzf ideaIC-2024.1.4.tar.gz -C /opt
/opt/idea-IC-241.18034.62/bin/idea.sh
Inside IntelliJ go to Tools ? Create Desktop Entry to add it to your application menu.
echo 'export PATH=$PATH:/opt/idea-IC-241.18034.62/bin' >> ~/.bashrc source ~/.bashrc
Now you can type idea.sh . to
open the current folder as a project.
Step 3 — First Launch Setup
When you open IntelliJ IDEA for the first time, it walks you through a quick setup wizard:
Choose Dark (Darcula) or Light. You can change this anytime via File ? Settings ? Appearance.
The default plugins are sufficient for Java. You can skip or add extras like Kotlin, Git Toolbox, or Rainbow Brackets.
You'll land on the Welcome Screen with options to create a new project, open an existing one, or clone from VCS.
Step 4 — Create Your First Java Project
-
Name:
HelloWorld - Location: choose a folder on your machine
- Language: Java
- Build system: IntelliJ (simplest for beginners)
- JDK: select your installed JDK 21 (or click Download JDK if not yet installed)
src folder.
Right-click src ?
New ? Java Class ? name it
HelloWorld.
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello from IntelliJ IDEA!");
}
}
Click the green ▶ Run button next to
main, or press
Shift + F10 (Windows/Linux) /
Ctrl + R (macOS). The output appears
in the Run panel at the bottom.
✅ IntelliJ IDEA is set up! You wrote, compiled, and ran your first Java program without touching the command line.
Configuring the JDK in IntelliJ
If IntelliJ does not detect your JDK automatically, set it manually:
-
Go to File ? Project Structure (or press
Ctrl + Alt + Shift + S). - Under Project Settings ? Project, click the SDK dropdown.
-
Click Add SDK ? JDK and navigate to your JDK
folder (e.g.
C:\Program Files\Java\jdk-21). - Set Project language level to match your JDK version.
- Click Apply ? OK.
Key Features You'll Use Daily
| Feature | How to use it |
|---|---|
| Smart code completion |
Start typing — IntelliJ suggests relevant completions. Press
Tab to accept.
|
| Error highlighting | Red underlines show compile errors instantly as you type — no need to run to find mistakes. |
| Quick fix |
Press Alt + Enter on any error
or warning to see suggested fixes.
|
| Refactor ? Rename |
Shift + F6 — renames a
variable/method everywhere in your project safely.
|
| Go to Declaration |
Ctrl + B (or
Cmd + B on Mac) — jump to where
a class or method is defined.
|
| Debugger |
Click the gutter (left margin) to set a breakpoint, then run
with Shift + F9 to debug.
|
| Git integration | VCS ? Git ? Commit / Push / Pull — all version control without leaving the IDE. |
Essential Keyboard Shortcuts
| Action | Windows / Linux | macOS |
|---|---|---|
| Run program | Shift + F10 |
Ctrl + R |
| Debug program | Shift + F9 |
Ctrl + D |
| Quick fix / suggestion | Alt + Enter |
Option + Enter |
| Rename refactor | Shift + F6 |
Shift + F6 |
| Go to declaration | Ctrl + B |
Cmd + B |
| Find in project | Ctrl + Shift + F |
Cmd + Shift + F |
| Search everywhere | Double Shift |
Double Shift |
| Format code | Ctrl + Alt + L |
Cmd + Option + L |
| Comment / uncomment | Ctrl + / |
Cmd + / |
| Duplicate line | Ctrl + D |
Cmd + D |
| Delete line | Ctrl + Y |
Cmd + Backspace |
| Generate code | Alt + Insert |
Cmd + N |
Tip: Use JetBrains Toolbox
JetBrains Toolbox is a free app that manages all your JetBrains IDEs. Instead of manually downloading updates, Toolbox handles installation, updates, and version rollbacks for you.
- Install multiple versions of IntelliJ side by side
- One-click update to the latest version
- Roll back to a previous version if needed
- Manage all JetBrains IDEs (PyCharm, WebStorm, etc.) from one place
📌 Download Toolbox at
https://www.jetbrains.com/toolbox-app/
— recommended for any developer using JetBrains products.
