Run SpringBoot application with Kotlin through cmd

Hi!
I run SpringBoot application with Kotlin through command line.
java some-name-SNAPSHOT.jar

Result:
Error: Could not find of load main class some-name-SNAPSHOT.jar

But this application was run through IDEA successful.

I use:
Kotlin
Maven
Spring Boot

How I can run kotlin springboot application through command line?

This is not really specific to Kotlin, Maven or Spring Boot. This is a matter of using Java correctly. Use java -jar some-name-SNAPSHOT.jar or java -cp some-name-SNAPSHOT.jar name.of.your.Class. Please note it will work only if you built a fat jar - it won’t work with just a regular jar. Even better, I suspect Maven could have some plugins for building the application package automatically (but I’m not sure, I’m not very familiar with Maven).

Thanks.
What is a fat jar?

I tried run my application. but it still doesn’t work