Kotlin Eclipse Environment Setup

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.