Once you have a source file, add the main function - the entry point to a Kotlin application. Now, create a new Kotlin file in the source directory. Great thing about this solution is that you can add both Kotlin and Java code to the same project. Now you are ready to create a new Kotlin project.įirst, select File | New | Kotlin Project.Īn empty Kotlin/JVM project will be created.įor Eclipse IDE, the project is also a Java project but configured with Kotlin nature, meaning it has the Kotlin Builder and reference to the Kotlin Runtime Library. Once the plugin is installed and Eclipse is restarted, make sure the plugin is installed correctly: open the Kotlin perspective in the menu Window | Perspective | Open Perspective | Other. menu and search for Kotlin Plugin for Eclipse:
We recommend installing the Kotlin plugin from Eclipse Marketplace. To add the Kotlin support to your Eclipse IDE, install the Kotlin Plugin for Eclipse. The Eclipse IDE for Java Developers bundle is recommended. You can download its latest version from download page. Set up the environmentįirst of all, you need the Eclipse IDE installed on your system. On this page, you will learn how to get started with Kotlin in Eclipse IDE. Eclipse IDE is a widely known IDE that offers various packages for development in different languages and for different platforms.