jarsigner -keystore mykeystore.jks myapp.jar myapp
If you're a developer, consider signing your jar files with a valid digital certificate to ensure they are trusted by the Java runtime environment. java application blocked for security
(Only in isolated environments)