TIDE
Languages

Kotlin

Installing Kotlin on Ubuntu in TIDE

Kotlin

Kotlin is a modern, concise, and type-safe programming language developed by JetBrains. It fully interoperates with Java and is widely used for Android app development, server-side applications, and multiplatform projects.

Installation

Kotlin requires a Java Development Kit (JDK). You can install OpenJDK and Kotlin on Ubuntu via apt or SDKMAN.

Using APT

apt update
apt install -y default-jdk kotlin

Using SDKMAN (Alternative)

SDKMAN allows managing Kotlin compiler and JVM SDK versions easily:

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install kotlin

Verification

Check the installed Kotlin compiler version:

kotlinc -version

Writing and Compiling Code

Create a Kotlin source file named hello.kt:

fun main() {
    println("Hello, World!")
}

Compile the program into a runnable JAR file:

kotlinc hello.kt -include-runtime -d hello.jar

Run the compiled JAR file:

java -jar hello.jar

Official Resources

On this page