I am running a webstart app in computer lab and the certificate used to sign jars gets regenerated with each build. Is there a way (e.g a command line argument) to avoid showing the accept certificates dialogue.
No.
Erm, actually I think maybe you can get your signature verified with like VeriSign or something?
Even with a valid cert doesn’t the dialog still show, only with a (very slightly) less scary dialog?
yup, only way to not show the certificate dialog is if the user ticks the box on it to always trust it, if you have a proper certificate then this box is ticked by default so users should only see it once (unless they untick it). As for the self signed certificate your using, it can be made to not show if trusted by the user, however if your generating a new certificate every build then since it will be a different certificate, each one of those will need to be accepted by the user.
Alternatively if your app can run without requiring permissions outside the java sandbox then you don’t need to sign it and it’ll run without a dialog.