I've been trying to run a Kotlin JVM program (not script) from the command line without success. The program is compiled in IDEA (and packaged into a jar) and runs fine through the IDEA run interface.
Should I be using java directly, or kotlinc-jvm to do this? When I try to use java on the jar it complains about not having a main class. When I try to run kotlinc-jvm on the jar, it simply opens the interactive shell. It sort of works when I try to interpret my main.kt file as a script with kotlinc-jvm, but the compilation fails since none of the proper dependencies have been specified.
Does anyone have some experience running programs on the command line? Any insight would be helpful.