I know that there were a lot of subjects like this one, but I didn't find answer at my question. I had created JAR file in IntelliJ in project structure and artifact is builded. In Java folder I have got package META-INF with MANIFEST.MF:
Manifest-Version: 1.0
Main-Class: com.przemyslawostrouch.hellowworldspring.Hellowworldspring
Application
but when I would like to execute JAR file (java -jar HelloWorldSpringTutorial.jar) in cmd line I received information: no main manifest attribute, in HelloWorldSpringTutorial.jar.
So should I add it to the JAR in IntelliJ manualy?
EDIT: CrazyCoder give a good instruction that META-INF should be in resourse folder, but my IntelliJ default setup created it in src->main-> java folder at the beginning. After changing the directory to the resourse, everything work good.