jar file execution error.
Hi all,
I have try to create a jar file using jar command as follows.
Code:
jar cf my-jar-file all-input-files
It create a jar file only, there is no manifest file. When I execute the my-jar-file it says that,
Failed to load Main-Class manifset attribute from my-jar-file
Anybody have an idea why is that.
Re: jar file execution error.
You need to specify your main class using a manifest file
Re: jar file execution error.
Can you explain a little how can I do it.
Re: jar file execution error.
Re: jar file execution error.
Yes pal, on the same document I refer and stuck with on it.
I'll explain it a little. All the issues comes with the loading images. After build the project, jar file created in the dist folder of the project. Actually dist folder has jar file as well as a folder named lib.
In my project simply I can refer correct folder to image and it is ok. Then after execution of the jar file, any of the image not loaded. Then what I have done is extract the jar file.
There create two folders, one is META-INF and the other is name with my project. After extracting and referring that folder I can execute the jar file.
I think now it is clear to you. Any idea why is that.