Choose the path that matches your workflow — IDE, command line, or package manager.
The best experience for Kotlin. Community Edition is free and includes full Kotlin support.
Get the Community or Ultimate edition from jetbrains.com/idea.
File → New → Project → Kotlin → JVM. The IDE bundles the Kotlin plugin and downloads the compiler automatically.
Create a Kotlin file, add a main function, and click the green Run gutter icon.
Official compiler packages for Linux, macOS, and Windows.
# Example (Linux / macOS)
curl -LO https://github.com/JetBrains/kotlin/releases/download/v2.0.21/kotlin-compiler-2.0.21.zip
unzip kotlin-compiler-2.0.21.zip
export PATH="$PATH:$(pwd)/kotlinc/bin"
kotlinc -version
kotlinc hello.kt -include-runtime -d hello.jar
java -jar hello.jar
# Or use the Kotlin runner directly
kotlin hello.jar
# Install SDKMAN if you don't have it curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" # Install Kotlin sdk install kotlin kotlin -version
brew install kotlin kotlin -version
sudo snap install --classic kotlin
Android Studio includes full Kotlin support out of the box.
Get it from developer.android.com/studio.
When creating a project, select Kotlin as the language. Empty Activity is a good starting template.
Open any .kt file — syntax highlighting and the Run configuration should work immediately.
kotlin -version
# Expected: Kotlin version 2.x.x ...
kotlinc -version
For multi-module or multiplatform projects, Gradle is the standard build tool. Create a new project in IntelliJ with the Kotlin Gradle template, or use the CLI:
# Using the Gradle wrapper is preferred in real projects
./gradlew build
./gradlew run
Installation complete? Head to the Coding guide for language features and examples, or return to Getting Started.