Unable to Run jar file


#1

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


#2

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.


#3

It Works…Thanks :slight_smile: