"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

  1. Navigating to Project Structure
  2. Going to the Artifacts tab
  3. Explicitly adding a new META-INF/ directory in my jar
  4. Adding the created MANIFEST.MF file to the META-INF/ in the jar FROM THE ARTIFACTS TAB
  5. Rearranging the order for the META-INF/ to be at the top
  6. Building and running

The end result looked like this