title: Why JBoss does not allow to use multiple endorsed directories?
body: <blockquote>
    <p>The system property <strong>java.endorsed.dirs</strong> specifies one <strong>or more directories</strong> that the Java runtime environment will search for such JAR files.</p>
  </blockquote>
  
  <p>Why does JBoss allow to use only one endorsed directory?<br>
  There is following code in jboss-5.1.0.GA\bin\run.bat:    </p>
  
  <pre><code>set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed
  "%JAVA%" %JAVA_OPTS% ^
     -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" ^
     -classpath "%JBOSS_CLASSPATH%" ^
     org.jboss.Main %*
  </code></pre>
  
  <p>I need to put one jar to endorsed directory.<br>
  But I cannot put it to <strong>%JBOSS_HOME%\lib\endorsed</strong> directory because on production environments this directory is readonly.<br>
  But I can change startup parameters of JBoss.<br>
  So I decided to add one more endorsed directory via startup parameters.<br>
  But I cannot do it because JBoss uses only its own <strong>java.endorsed.dirs="%JBOSS_ENDORSED_DIRS%"</strong>.</p>