Your question first:
- If you are going to self-sign, you should create your own keystore and tell Eclipse to use that to sign your .jars. That way you can reuse that same keystore to resign your .jars when you add the necessary manifest attributes. Don't tell Eclipse to self-sign using a generated keystore. About half-way down this page has instructions on how to create your own keystore (NOTE: this should only serve as a temporary fix, you should get away from self-signed apps. Read the bottom of this post).
- I could be wrong, but if you are adding your manifest attributes via a text editor, that will not work. I am not sure why, but I tried to add them via a text editor and it did not work. You should place what you need to add in a text file and add the manifest attributes via the command
jar ufm dist\myApp.jar addToManifest.txt
in the console.
Not your question, but important:
Self-signed keys are deprecated as of 7u25. If you work for a business or you have clients who use software, then I'd tell them you need a signed certificate from a Certificate Authority. Even a small business should be able to afford the small amount it costs for a certificate. And it's very worth it if you are a contractor (like me) with multiple clients. In fact, it will be mandatory in the future. So, bite the bullet.
EDIT: for more information about how to add manifest attributes and re-sign, visit this thread: How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app?. You'll need a non-Eclipse-generated keystore, though.