MOCKSTACKS
EN
Questions And Answers

More Tutorials








Kotlin Install on Windows

Kotlin requires a prerequisite which is Java JDK. Java jdk is required to run and compile Kotlin on Windows. Below are three steps to complete Kotlin installation:

  • Verify/Install Kotlin prerequisite.
  • Download and install Kotlin.
  • Verify Kotlin installation.

Verify if Java JDK is installed

To veify if Java JDK is installed click Start > Run > CMD

Then run the below command in your command prompt:

java -version 
If you see similar to below Output you are all set to install Kotlin:

java version "1.8.0_291"
If you don't see a java version then use this documentation from Oracle to install Jdk on Windows.

Download an Install Kotlin

After installing/Verifying installed Java JDK do below steps to install Kotlin:

Download Kotlin

Download Kotlin Last Realease from Github. After opening this link, scroll down the page. Here, you will get to see the Kotlin-compiler-x-x-x.zip file under the asset section. Now, just click on that link and download the Kotlin zip file.

Extract Kotlin zip file

Extract the zip downloaded zip file to any location you want to store Kotlin and make sure you store that location because you will need it in other steps. Let's call this path Location as Kotlin_LOCATION_PATH this is just a naming step not used during installation process.

Setting up Environment Variable for Kotlin Compiler

From Windows click Start > Run and then type below command:

rundll32.exe sysdm.cpl,EditEnvironmentVariables
From System variables Section :
  • Select Path Row.
  • Click New Button.
  • Paste Kotlin_LOCATION_PATH.
  • Click Ok.

Verify Kotlin installation

To veify if Kotlin is installed click Start > Run > CMD

Then run the below command in your command prompt:

Kotlin -version 
If you see similar to below Output you are all set and Kotlin has been installed successfully:

Kotlin version 1.5.21-release-314 (JRE 1.8.0_291)
If you don't see a Kotlin version retry all steps from beginning.

Conclusion

In this page (written and validated by ) you learned about Kotlin Install on Windows . What's Next? If you are interested in completing Kotlin tutorial, your next topic will be learning about: Kotlin File Extension.



Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: mockstacks@gmail.com.


Share On:


Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using Mockstacks.com, you agree to have read and accepted our terms of use, cookies and privacy policy.