I have set up a Kotlin environment on my desktop and laptop, however on my laptop only I get “no main mainfest attribute” error when I execute the jar file. Upon inspecting both jar files there are differences. The desktop file has the .class file in the root, but is missing in the laptop generated jar. Under the “META-INF” folder the desktop file has a “main.kotlin_module” and a “MANIFEST.MF” file. The laptop jar file is missing the “main.kotlin_module” file.
On both systems I’m using Kotlin version 1.1.2-5 and Java version 1.8.0 131-b11. The command line used for compile is “kotlinc HelloWorld.kt -include-runtime -d”.
I’m at a loss on why the two Jar files are being generated differently? Any clues on what to check would be appreciated.