Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kotlinc command line error

Tags:

kotlin

kotlinc

I follow this (https://kotlinlang.org/docs/tutorials/command-line.html) instruction. I set the environment variable (windows 7) to bin directory run "kotlinc" at the command line i get the following error (I even navigate to the bin directory from the command prompt)

Error: Could not find or load main class org.jetbrains.kotlin.preloading.Preloader

like image 693
Daud Oladipo Avatar asked Apr 20 '26 12:04

Daud Oladipo


1 Answers

its because spaces in path to kotlinc. Need to convert path from D:/Program Files to D:/.

like image 200
Кирилл Осадчий Avatar answered Apr 22 '26 21:04

Кирилл Осадчий