I'm just starting java development and I need to create a jar file to deploy it to another user. I have the following folder's struture:
and my .java, .class are inside ...\server. They are:
Servidor.txt which is my manifest file with the following content
Then I issued the following command in the hope of creating my jar file:
jar -cfmv Servidor.jar *.* *.class from inside ...\server folder.
It creates Servidor.jar but when I click it I doesn't execute itself like an .exe file and shows the following error message:
invalid or corrupt jarfile: c:\rhiegen\downloads\projects\server\Servidor.jar.
How can I create an self executing jar file so that I can send it to anyone even if he has not java installed in your computer?
Thanks in advance,
Rhiegen [originally posted on jforum.net by rhiegen]