I have java project. When I export it to file.jar, it can't be opened with double click.
When I test with the command line:
java -jar file.jar
It shows the message:
No main manifest attribute
but with:
java -cp app.jar com.somepackage.SomeClass
it runs perfectly.
I use IntelliJ IDEA and maven. Manifest code:
Manifest-Version: 1.0
Main-Class: StructureClasses.Main