BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Create and Run your First Kotlin Project in Eclipse IDE

Last Updated: February 20, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

In this tutorial we will see how to install Kotlin plugin in Eclipse IDE to create and run your first Kotlin application in Eclipse IDE.

Installing Kotlin Plugin

Step 1: If you have not installed Eclipse IDE, you can download it from this link: https://www.eclipse.org/downloads/ Be sure to grab the “Eclipse IDE for Java Developers” bundle. To run the Kotlin in Eclipse IDE, you must have the Eclipse Neon or later version of the IDE. I m using Elipse Oxygen.

Step 2: To install Kotlin plugin in Eclipse, go to Help section in Eclipse IDE menu and click on “Eclipse Marketplace”. Search for kotlin plugin by typing “Kotlin” in the search field and click go. Click install to install the Kotlin plugin as shown in the screenshot below.
Eclipse MarketPlace For Kotlin Installation
Install Kotlin Plugin Eclipse IDE
Step 3: Once installation is done, accept the agreement and click “Finish”.

Open Kotlin Perspective in Eclipse IDE

Open the Perspective window in Eclipse IDE by clicking the icon shown in the screenshot below. You can find this icon in the top right corner of Eclipse IDE. Alternatively you can open Perspective window from menu Window -> Open Perspective -> Other.

Select Kotlin and click Open.
Eclipse Perspective Kotlin

Creating First Kotlin Project in Eclipse

File -> New -> Kotlin Project. Give project name and click finish.
Kotlin Project

Creating Project File in Kotlin Project

Project->right click on src->New->Kotlin File. Give a meaningful file name and click finish. Kotlin files have .kt extension.
Kotlin File in Kotlin Project
Type this code in the file:

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

Running the first Program

Right click on the file ->Run As->Kotlin Application
hello world kotlin program

Output:
Output First Kotlin Project

❮ PreviousNext ❯

Top Related Articles:

  1. Kotlin Tutorial for Beginners | Learn Kotlin
  2. Create and Run your First Kotlin Project in IntelliJ IDEA
  3. Kotlin Class and Objects – Object Oriented Programming (OOP)
  4. Kotlin Constructors with examples
  5. Kotlin Keywords, Soft Keywords and Identifiers

About the Author

I have 15 years of experience in the IT industry, working with renowned multinational corporations. Additionally, I have dedicated over a decade to teaching, allowing me to refine my skills in delivering information in a simple and easily understandable manner.

– Chaitanya

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Kotlin Tutorial

  • Kotlin Tutorial
  • Kotlin in Eclipse IDE
  • Kotlin in IntelliJ
  • First Kotlin Program
  • Kotlin Keywords
  • Kotlin Variables
  • Kotlin Type Casting
  • Kotlin operators
  • Kotlin Input/Output
  • Kotlin Comments

Kotlin String

  • Kotlin String

Kotlin Array

  • Kotlin Array
  • Kotlin Range

Control Flow

  • Kotlin if expression
  • Kotlin when expression
  • Kotlin for loop
  • Kotlin while loop
  • Kotlin do-while loop
  • Kotlin continue
  • Kotlin break

Kotlin Function

  • Kotlin Function
  • Kotlin Recursion
  • Kotlin default and named arguments
  • Lambda functions
  • Higher Order Function

Exception Handling

  • Exception Handling
  • Kotlin try catch
  • Multiple catch blocks
  • Nested try catch
  • Throw keyword
  • Kotlin try expression

Kotlin OOP

  • Class and Objects
  • Kotlin Constructors
  • Kotlin Inheritance
  • Visibility Modifiers
  • Kotlin abstract class
  • Kotlin Interfaces
  • Nested and Inner Class
  • Kotlin Data Class
  • Kotlin Sealed Class

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap