title: Error: Could not find or load main class -Xms1G
body: <p>After moving from spring to gradle, we're trying to redeploy an app to account for the change.  However, deployment has continuously failed, with this error:</p>
  
  <pre><code>Error: Could not find or load main class -Xms1G
  </code></pre>
  
  <p>The line of code in question is:</p>
  
  <pre><code>exec nohup "$JAVACMD" $JAVA_OPTS @EXTRA_JVM_ARGUMENTS@ \
      -Xms1G -Xmx2G \
  </code></pre>
  
  <p>There is no reason for this to register as a class; we added this a while ago to alocate the memory, and the application worked and deployed fine.  When testing on a local environment, there are no issues, so I have no idea what is wrong.</p>
  
  <p>Java's version is 1.8.0_172.</p>