[solved] no main manifest attribute, in

[solved] no main manifest attribute, in

no main manifest attribute, in

If Manifest file missing in the created jar then you will get this error.

If you used eclipse to create the jar then you can use Main class option to resolve this issue,

1. Right click -> Export -> JAR File (under JAVA) then Next
2. Select the export location
3. Next, Next and Now you will be able to see the option like below,

main class manifest

In that Browse and select the main class (file which has public static void main) then finish.

Now Jar will be created with manifest file and main class defined, so you wont get the same issue again.

Recommended Books:

892 total views, 3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.