Kotlin is a JVM-based language developed by JetBrains. JetBrains, a Czech software development company in Prague, Czech Republic, has developed IntelliJ idea, a well-known IDE product that has improved significantly compared to eclipse, and some other similar products such as , Pycharm,clion and so on, and Android studio, the official Android development IDE, was developed based on IntelliJ. At this year's Google I/O conference, Google officially acknowledged Kotlin as the official language for Android development.
Flipboard China's Android project has identified a formal kotlin as the project development language, which means that new code files will appear in the Kotlin code format, and that the old Java code will be translated into Kotlin code on a rolling succession.
From: http://www.runoob.com/kotlin/kotlin-eclipse-setup.html
Eclipse installs the Kotlin plugin via Marketplace, opens Eclipse, and selects Help, Eclipse Marketplace ... menu, search Kotlin plugin:
Then restart Eclipse Select Window, Open perspective, other ..., if you see the Kotlin option indicates that the installation was successful.
Create a new project
Select File, New, Kotlin project to create the Kotlin project:
After successful creation, the project structure is as follows:
Next we click the SRC folder, create a Kotlin file, do not write ". kt", default automatically added, it can be arbitrarily named, here we create hello
Next, we write some code in the Hello.kt file. Eclipse gives us a quick template for doing this, just type main and press Enter.
Run the App
Next we can run the hello.kt in the edit box by right-clicking the mouse and selecting Run as--Kotlin application:
After successful operation, you can see the results in the window Console.
So our first Kotlin code is running.
Kotlin Eclipse Environment Setup