Importing an external class with kotlinc

I have a short, simple Kotlin program that needs to import Key source code line is:


I can get it to compile successfully with kotlinc with the -cp option followed by the path to the jar file for the Gson class.

But I cannot get the jar file that the kotlin compiler writes out to successfully run. Even with the same -cp option, I get a NoClassDefFoundError.

This seems to be a kotlinc problem; I can get this to work with javac / java.

Thanks for any help or suggestions.