2020-02-24

2020-02-24 Monday - Quick Visual Guide to Setup Kotlin for Eclipse 4.14 (2019-12)

A quick visual guide to setup Kotlin 1.3 in Eclipse 4.14 (2020-12)

This posting was motivated by the elegant Kotlin implementation that Christian Hujer posted to Github today (for Conway's Game of Life) - which led me to spend a little time today revisiting Kotlin.

The conciseness of the Kotlin language is notable when comparing Christian's two implementations: Kotlin vs. Java.


References:

 

 Setup Steps:

 

0.0 Precondition:

  • JDK 1.8 installed   
  • Eclipse 4.14 (2019-12) installed

1.0 Install the Kotlin Eclipse Plugin




2.0 Kotlin Preferences: Building

  • Check box to enable incremental compiler usage.

  

3.0 Kotlin Preferences: Code style 

  • Accept default Code style 


4.0 Kotlin Preferences: Compiler

  • Configure JVM target version: 1.8
  • Configure JDK Home: <your path to JDK 1.8


  5.0 Create a new Kotlin Project (e.g. "HelloWorld")



6.0 Verify that your Project's Properties "Java Build Path > Libraries" has Java JRE 8 configured


 7.0 Create a Kotlin File




  8.0 Name the file (e.g. "HelloWorld")



 9.0 Create the "main" function



10. Remember to "Run-As" a Kotlin Application




Additional Reading:

Building RESTful APIs with Kotlin

 More Kotlin Tutorials & Exercises

No comments:

Copyright

© 2001-2021 International Technology Ventures, Inc., All Rights Reserved.