title: How to add system property equivalent to java -D in Ant
body: <p>I need to set <em>java -Djava.library.path=/some/path</em> and I want to do it when I am running my ant script, building my jar.</p>
  
  <p>I think I have to use</p>
  
  <pre><code>&lt;sysproperty key="java.library.path" value="/some/path"/&gt;
  </code></pre>
  
  <p>but it doesnt work. I cannot make the syntax work. The only thing I have Googled and found is sysproperty in conjunction with </p>
  
  <pre><code> &lt;java classname&gt;
  </code></pre>
  
  <p>but that doesnt make any sense to me.</p>
  
  <p>I am not sure if this is relevant, but I am using ant to create a ear and deploying this ear in JBoss.</p>