I am getting no main manifest attribute while running the jar create by Intellij. I extracted the jar and observed that there was another manifest
For Idea Intellij 2020:
Remove obfuscation if presents
delete/(move somewhere outside the project) META-INF folder in explorer
remove artifacts in project structure--> artifacts--> '-'
rebuild the project
add artifacts again to project structure--> artifacts--> '+'
rebuild the project
Build-->Build artifacts..
Now the new produced jar should work