title: How to set multiple JAVA_OPTS options in startup.bat
body: <p>I am trying to pass multiple parameters when I start tomcat through <strong>startup.bat</strong>. I tried adding these lines at the top of startup.bat file, however they do not work.</p>
  
  <pre><code>set JAVA_OPTS="-Dapplication.home=E:\\webapp -Dfilepath=D:\\newFolder\\conf\\con.properties"
  </code></pre>
  
  <p>Initially I was running the application with just one parameter <code>-Dapplication.home=E:\\webapp</code> which worked fine. Now I need to pass another parameter and this method fails. Please advice.</p>
  
  <hr>
  
  <p>On running, I get this exception a <code>FileNotFoundException</code>:</p>
  
  <pre><code>java.io.FileNotFoundException: E:\webapp -Dfilepath=D:\newFolder\conf\con.properties (The filename, directory name, or volume label syntax is incorrect)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:120)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:79)
  </code></pre>
  
  <p>The code is reading the entire segment as a single argument.</p>