Reputation: 63
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
Upvotes: 3
Views: 3603
Reputation: 11
its because spaces in path to kotlinc. Need to convert path from D:/Program Files to D:/.
Upvotes: 1
Reputation: 1
The manifest file for hello.jar does not point to main() anymore. I've been asking about this for awhile -- it may have been broken since Kotlin 1.1.
Upvotes: 0