Answers for "ubuntu kotlin install"

1

ubuntu kotlin install

Install desired Java version. For example in this case we will go with Java openjdk-11-jdk:
$ sudo apt install openjdk-11-jdk

Next step is to install Kotlin:
$ sudo snap install --classic kotlin

Use any text editor and create a file called hello.kt with the following content:
fun main() {
    println("Hello World!")
}

Compile the Kotlin source code:
$ kotlinc hello.kt -include-runtime -d hello.jar

Run the actual Kotlin program:
$ java -jar hello.jar
Hello World!
Posted by: Guest on August-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language