[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,
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.
327 total views, 1 views today