title: JAAS: How to load config file?
body: <p>I'm trying to run the JAAS code sample.</p>
  <pre><code>lc = new LoginContext(&quot;JaasSample&quot;, new TextCallbackHandler());
  </code></pre>
  <p>To register the configuration file I try the command:</p>
  <pre><code>java -Djava.security.auth.login.config=jaas.config JaasAcn
  </code></pre>
  <p>And gets the error:</p>
  <blockquote>
  <p>Error: Could not find or load main class .security.auth.login.config=jaas.config</p>
  <p>Caused by: java.lang.ClassNotFoundException: /security/auth/login/config=jaas/config</p>
  </blockquote>