How to Install Kotlin Language in Apricity Linux

Today I stumble upon a new language that looks promising in the future. Yes, its Kotlin Language. The syntax very ‘industrial minded’ in my opinion but I like it. I have put these 2 books for my next to buy for future reference :

Kotlin for Android Developers: Learn Kotlin the easy way while developing an Android App

Published by Createspace, on demand book publisher from Amazon. So far the book got 3 average reviews but I believe its enough for newbie android developer that looking for ‘other’ way than facing java in beginning 🙂

Kotlin in Action

Published by Manning, well known publisher. So far the book not released yet but the book author also developer of Kotlin.

Ups, back to installation. Lets get start!

Install Kotlin in Linux

$ curl -s “https://get.sdkman.io” | bash

$ source “/home/alamsyahr/.sdkman/bin/sdkman-init.sh”

$ sdk help

==== BROADCAST =================================================================
* 25/07/16: Groovyserv 1.1.0 released on SDKMAN! #groovyserv
* 21/07/16: Grails 3.2.0.M2 released on SDKMAN! #grailsfw
* 18/07/16: Gradle 2.14.1 released on SDKMAN! #gradle
================================================================================

Usage: sdk <command> [candidate] [version]
sdk offline <enable|disable>

commands:
install   or i    <candidate> [version]
uninstall or rm   <candidate> <version>
list      or ls   [candidate]
use       or u    <candidate> [version]
default   or d    <candidate> [version]
current   or c    [candidate]
outdated  or o    [candidate]
version   or v
broadcast or b
help      or h
offline           [enable|disable]
selfupdate        [force]
flush             <candidates|broadcast|archives|temp>

candidate  :  the SDK to install: groovy, scala, grails, akka, etc.
use list command for comprehensive list of candidates
eg: $ sdk list

version    :  where optional, defaults to latest stable if not provided
eg: $ sdk install groovy

$ sdk install kotlin
==== INTERNET NOT REACHABLE! ===============================

Some functionality is disabled or only partially available.
If this persists, please enable the offline mode:

$ sdk offline

============================================================

This command is not available while offline.

$ sdk install kotlin

==== BROADCAST =================================================================
* 26/07/16: Gaiden 1.1 released on SDKMAN! #gaiden
* 25/07/16: Groovyserv 1.1.0 released on SDKMAN! #groovyserv
* 21/07/16: Grails 3.2.0.M2 released on SDKMAN! #grailsfw
================================================================================

Downloading: kotlin 1.0.3

In progress…

######################################################################## 100.0%

Installing: kotlin 1.0.3
Done installing!

Do you want kotlin 1.0.3 to be set as default? (Y/n): y

Setting kotlin 1.0.3 as default.

Testing if Kotlin Present in System

$ kotlin -version

Kotlin version 1.0.3 (JRE 1.8.0_102-b14)

$ kotlinc -version

info: Kotlin Compiler version 1.0.3

Looks great. I can follow next step in manual 🙂