[solved] no main manifest attribute, in

Error:
no main manifest attribute, in

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

Solution:
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:

Leave a Reply