title: How to use keytool to run a test and check if JCE is absent or present?
body: <p>Recently I ran into JDK installs from Oracle which had JCE files such as <code>local_policy.jar</code> present in the <code>jre/lib/security</code> directory but those files were dummies and did not truly enable Unlimited Strength encryption. After replacing them with downloads from Oracle, things went much smoother.</p>
  
  <p>Now I'm thinking that there should be an easy way to sanity-test a system and prevent confusion like this. So, I'm wondering:</p>
  
  <blockquote>
    <p>Which <code>keytool</code> operation could I run that would only succeed if the appropriate JCE jars were installed and in use?</p>
  </blockquote>
  
  <p>That way, when it fails I know that local_policy.jar is either not available or there is a useless dummy file in place which should be swapped out with the real one.</p>