
Throughout this Kotlin Tutorial we will be running the version 1.5.31 on Kotlin playground. You have another option of using the online Kotlin compiler as in this Kotlin Tutorial. And there you go! Your Kotlin development environment is all set to use.

Give a name to your file and save it with. kt extension under the src folder as follows: Select src -> Click on New -> File. Finish the corresponding configuration.Īfter creating a new Kotlin Project, you are free to create various new Kotlin files with the. Select appropriate SDK version and click on ‘Next’. Here, we have named the project as ‘GLKotlin’. Open your IntelliJ IDEA window and create a new Kotlin Project. Once the installation is complete, you might need to restart your Eclipse. In the case of Eclipse, ensure its configuration by installing Kotlin from ‘Kotlin Marketplace’. Installing the recent software version is recommended. You can go for any other IDE also, such as NetBeans or Eclipse. Most probably, you would like to opt for the Community version since it is absolutely free for individual development usage. For downloading IntelliJ IDEA visit this site of jetbrains. Refer to this link in case you need an IntelliJ installation guide. Install IntelliJ IDEA which is a cross-platform IDE to get a consistent experience on your OS. Successful installation will result in displaying the installed Java version. Type “java –version” on the command prompt and hit the Enter button to verify your java installation.

Further, you will have to set the environment variable for Java for its seamless working. Now, as far as Kotlin’s compatibility with JDK 16 is concerned, for the new Java class type - record - of JDK 16, Kotlin 1.4.30 has experimental record class support. You can download JDK 8 or any of its latest versions from here. Since Kotlin runs on JVM, you will need to use JDK 8 or any other recent version for Kotlin development. For setting up an offline Kotlin environment on your local system, you will need to go through the following sequence of steps:
