I’m trying to automatically sign my jar upon export, thus saving me from having to open the command prompt and manually sign it repeatedly. Is there any methods that can be used to sign the jar upon export? For reference I’m doing this for an Applet, I need to have the elevated permissions that the certificates give you. Thanks! If you need anything else, post in a reply and I’ll update this post.
Nope. You’re going to have to create a script (batch file on Windows, bash script on Linux) that does it for you.
Hmmm I’ve tried that… It just spams the commands and never signs the jar(s). Do you know of any script I can do that with?
Assuming you’ve already created your keystore, signing your jars should only be 1 command:
jarsigner <path to jar> <alias>
It should then ask you for the password to your keystore (and alias if it’s different).
Yeah, that’s what I do. When I make a batch script to do it for me, it never asks for me the password and if I keep echo on, it just floods the screen with attempts.
Figured it out. 
Why not using an Ant script? It is cross-platform, you can use it both in command line and in your favorite IDE, you can have an invite to enter a password. I have used Ant for years in my main project and I’m quite happy with it. There are some alternatives for those who do not want to write XML, for example Gradle.