title: How to run Kotlin on Ubuntu?
body: <p>I just installed Kotlin on Ubuntu with the commands below,</p>
  
  <pre><code>curl -s https://get.sdkman.io | bash
  sdk install kotlin
  </code></pre>
  
  <p>And it's installed with the lines below,</p>
  
  <pre><code>Downloading: kotlin 1.3.61
  
  In progress...
  
  ######################################################################################################## 100.0%
  
  Installing: kotlin 1.3.61
  Done installing!
  *************************************************************
  </code></pre>
  
  <p>But when I try to execute a file, it doesn't work.</p>
  
  <pre><code>comp@ubuntu:~$ kotlin --version
  /home/comp/.sdkman/candidates/kotlin/current/bin/kotlinc: line 80: java: command not found
  
  comp@ubuntu:~$ chmod +x test.kt 
  comp@ubuntu:~$ kotlinc test.kt -include-runtime -d hello.jar
  /home/comp/.sdkman/candidates/kotlin/current/bin/kotlinc: line 80: java: command not found
  
  comp@ubuntu:~$ which kotlinc
  /home/comp/.sdkman/candidates/kotlin/current/bin/kotlinc
  </code></pre>
  
  <p>Line 80 of the file "/home/comp/.sdkman/candidates/kotlin/current/bin/kotlinc" is below,</p>
  
  <pre><code>"${JAVACMD:=java}" $JAVA_OPTS "${java_args[@]}" -cp "${kotlin_app[@]}" "${kotlin_args[@]}"
  </code></pre>
  
  <p>What can be the problem? Problems with some Java components? Thanks.</p>