title: Passing jboss argument on startup
body: <p>I'm trying to pass arguments to my jboss server on start up, its a string, but it always gets null when war is deployed here is how I do it:</p>
  
  <pre><code>./run.sh -Dfile.config=/home/stats/config.xml -c default -b 192.168.1.102
  </code></pre>
  
  <p>Strange this is that I don't this property passed to VM when looking at log :</p>
  
  <pre><code>[ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/apps/jboss/lib/endorsed
  </code></pre>
  
  <p>Can anyone figure out what I'm doing wrong? thank you</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is how I reference this property in the code :</p>
  
  <pre><code>Properties property = System.getProperties();
  String fileName = (String)property.get("file.config");
  </code></pre>
  
  <p>This works for me on windows, starting jboss from eclipse :</p>
  
  <p><img src="https://i.stack.imgur.com/5j0qB.jpg" alt="enter image description here"></p>
  
  <p>I'm trying to run this server from linux box this time.</p>