Unable to Run jar file

I have installed standalone kotlin compiler, created hello.kt with hello world program, compiled it to jar. when running it in jvm it gives error unable to find/load main class

If your manifest does not contain main class property (which by default it does not), you have to specify entry point manually. Like java -jar <your jar>.jar helloKt. I may be wrong about Kt suffix. You can try with or without it.

1 Like

It Works…Thanks :slight_smile: