0

I have generated an executable jar in IntelliJ IDE. But when I try executing the jar file from windows folder it does not work. When I try running the .jar file from within the IDE in debug mode it gives the below error:

no main manifest attribute, in D:\... the file path

To generate the executable jar I referred to Link

I referred to Link for the no main manifest attribute issue but dint help as in my case its a Gradle build

(Note: If I execute the program(.java file) from within the IDE it works fine, so I believe the issue is not with the program)

Hope the issue I face is clear, await guidance

Community
  • 1
  • 1
iCoder
  • 1,406
  • 6
  • 16
  • 35
  • 1
    You will find this question answered here: http://stackoverflow.com/questions/20952713/wrong-manifest-mf-in-intellij-idea-created-jar – Megan D Jun 22 '16 at 22:06
  • @MeganD that link I had checked earlier, but it doesn't help. I still get the same error message. – iCoder Jun 23 '16 at 12:13

1 Answers1

0

Adopted Gradle build tool to generate Jar.

iCoder
  • 1,406
  • 6
  • 16
  • 35