title: In tomcat 8, How to provide file path in setenv.bat to read from java class
body: <p>I want to have my custom <code>java.security.auth.login.config</code> property to be read from a user defined file from tomcat directory say <code>TOMCAT_HOME/bin/jass.config</code>.</p>
  <p>:: Settings in <code>setenv.bat</code> ::</p>
  <pre class="lang-sh prettyprint-override"><code>set &quot;jaasFile=C:\Users\...\apache-tomcat-8.5.33\bin\jass.conf&quot;
  set &quot;CATALINA_OPTS=%CATALINA_OPTS% -Djava.security.auth.login.config=%jaasFile%&quot;
  </code></pre>
  <p>however if I am reading it from java class is shows as <strong>null</strong> :</p>
  <pre class="lang-java prettyprint-override"><code>System.getProperty(&quot;java.security.auth.login.config&quot;);  //  Showing as null
  </code></pre>
  <p>any hint how to achieve this?</p>