The MANIFEST.MF file that was generated by default did not contain Main-Class property in this case. I'm playing with Java, and struggling with the IDE. lang. no main manifest attribute, in "app.jar" Normally, if I had created the program myself, I would have added a main class attribute to the manifest file. It works but it opens it in a new pop up window and I want to remain within the IntelliJ screen. SecurityException: Invalid signature file digest for Manifest main attributes at sun. But everytime i am trying to run my jar file its giving me exception. But in this case, since the file is from an application, i … Greenhorn Posts: 8. posted 6 months ago. See Packaging Programs in JAR Files to learn how to create an executable JAR. util. ... Jar file in jar file Failed to load Main-Class manifest attribute from HelloWorld.jar Maven Project is not downloading dependent Jar from pom.xml If it's not an executable JAR, then you'll need to run the program with something like: java -cp app. com.petersamokhin.Main Однако, не у одного меня IDEA выдаёт ошибку - Element archive is not allowed here, и в результате всё равно no main manifest attribute: security. Things to keep in mind while handling Manifest files: java. I am trying to run the jar file of my project. If it’s not an executable JAR, then you’ll need to run the program with something like: Let’s have a look at the generated default manifest file. I am working on intelliJ and have use artifacts to generate the jar file. jar com. java.io.IOException: invalid manifest format. Manifest file can also be updated by using the m option of jar command. The -jar option only works if the JAR file is an executable JAR file, which means it must have a manifest file with a Main-Class attribute in it. A Diamond. See Packaging Programs in JAR Files to learn how to create an executable JAR.. That should have been java -jar app.jar instead of java -jar "app".. somepackage. But there are certain things which need to kept in mind while updating manifest file otherwise you may get the following creepy message. IntelliJ Idea no manifest . Anyway, I have set the shell path in IntelliJ to the path for Git Bash so that when I click on terminal it uses this one instead of the generic cmd. The -jar option only works if the JAR file is an executable JAR file, which means it must have a manifest file with a Main-Class attribute in it.