Java - IntelliJ generated executable jar not working
<p>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:</p>

<pre><code>no main manifest attribute, in D:\... the file path
</code></pre>

<p>To generate the executable jar I referred to <a href="https://stackoverflow.com/questions/1082580/how-to-build-jars-from-intellij-properly">Link</a></p>

<p>I referred to <a href="https://stackoverflow.com/questions/27982327/no-main-manifest-attribute-intellij">Link</a> for the no main manifest attribute issue but dint help as in my case its a Gradle build</p>

<p>(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)</p>

<p>Hope the issue I face is clear, await guidance</p>