title: Java Invalid maximum heap size
body: <p>I just installed Ubuntu 64Bit on my VServer and JRE build 1.7.0_67-b01. 
  If I want to run a java jar-file it says</p>
  
  <blockquote>
    <p>Invalid maximum heap size: -Xmx
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.</p>
  </blockquote>
  
  <p>java -help says</p>
  
  <blockquote>
    <p>java version "1.7.0_67" Java(TM) SE Runtime Environment (build
    1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)</p>
  </blockquote>
  
  <p>I tried 1M, 256M, 1024M, 2G and 4G for -Xmx, nothing works. Is there a hidden setting I don't know?</p>
  
  <p>Here's the command I use:</p>
  
  <pre><code>java -Xmx 1024M -Xms 1024M -jar MyConverter.jar
  </code></pre>