title: Why am I getting package javax.crypto does not exist
body: <p>When I compile a class using <code>javax.crypto.Mac</code> I get this error message?</p>
  
  <blockquote>
    <p>package <code>javax.crypto</code> does not exist</p>
  </blockquote>
  
  <p>I can fix it by including <code>jre/lib/jce.jar</code> in my compile classpath.</p>
  
  <p>Why is <code>jce.jar</code> not on the default jdk classpath?  <code>jre/lib/rt.jar</code> is on the classpath, and includes other <code>javax</code> packages, but jce seems special? </p>