"no main manifest attribute" error in intellij when executing jar
For anyone that may have encountered this problem in intellij and did not find a solution in any other posts, what helped me was
- Navigating to Project Structure
- Going to the Artifacts tab
- Explicitly adding a new META-INF/ directory in my jar
- Adding the created MANIFEST.MF file to the META-INF/ in the jar FROM THE ARTIFACTS TAB
- Rearranging the order for the META-INF/ to be at the top
- Building and running
The end result looked like this