As the Kotlin runs on JVM, it requires a JDK to be installed on your computer. You can download JDK directly from oracle.com but it is not free for commercial use (it is still free for personal use). You have to buy it if you want to use it for production. Therefore we download JDK from adoptopenjdk.net, which is free and open-source.
You can download the JDK from the links below,
Once you have downloaded the JDK, you can follow the following steps to install it,
Now the OpenJDK is successfully installed on your computer. To confirm the installation, open the command prompt or Windows PowerShell and type java –version, and press enter. It should show somewhat similar as shown below.