Yes, the library you want to use has to be found in the classpath at runtime. I'm not familiar with the command line usage of kotlinc, I mostly use the IDE integration, but you might find what you're looking for on this page:
https://kotlinlang.org/docs/tutorials/command-line.html