I have a Java app that requires JCE Unlimited Strength policy files to be installed in order to generate certificates. However, currently, the system fails silently if the files are not installed, rather than throwing an exception or something.
Is there a programmatic way to check for these files from within the app? thanks.
Turns out, as GregS points out above, that the program was not failing silently, but swallowing the exception. The call to
KeyStore.store()was throwing anIOExceptionthat I was catching with a genericcatch (Exception e)farther below. Once catching theIOExceptionseparately, the program now works properly.