title: Change default port number Play Framework : Using the SBT assembly plugin deployment option
body: <p>I already found <a href="https://stackoverflow.com/questions/8205067/how-do-i-change-the-default-port-9000-that-play-uses-when-i-execute-the-run">How do I change the default port (9000) that Play uses when I execute the &quot;run&quot; command?</a></p>
  
  <p>But it has no answer to this.</p>
  
  <p>This is specific to <a href="https://www.playframework.com/documentation/2.5.x/Deploying#Using-the-SBT-assembly-plugin" rel="nofollow noreferrer">https://www.playframework.com/documentation/2.5.x/Deploying#Using-the-SBT-assembly-plugin</a></p>
  
  <p>How can I change port when using assembly deployment option ?</p>
  
  <p>I'm using </p>
  
  <p>proc = new ProcessBuilder(</p>
  
  <pre><code>  "java",
  
    "-jar",
  
    "./lib/mode-assembley.jar",
  
    "-Dhttp.port=1234",
  
    "-Dplay.crypto.secret=abcdefghijk"
  
  
  
    ).start();
  </code></pre>
  
  <p>but this is still trying 9000 ! and getting </p>
  
  <blockquote>
    <p>Bad root server path:
    /Users/xxxx/project/-Dhttp.port=1234</p>
  </blockquote>