title: NetBeans Low on Memory Error
body: <p>I am new to this kind of error in Netbeans. I have been working in Java J2SE using my net beans 8.0.2. I am doing Fuzzy Search on Strings usually strings having 300-500 length. I am using Levenshtein and Jaro Winkler Algorithms to find the Distance between the strings.
  There are about 1500 iterations to find the distance between the strings!
  The problem is that my net beans often gives error for:</p>
  
  <pre><code>Low on Memory, Error Unable to Compile
  </code></pre>
  
  <p>I have done some search online to get rid of this error and found how to increase the heap size by adding</p>
  
  <pre><code>-Xms3G
  </code></pre>
  
  <p>command means to give 3GB space for the heap! but the error still comes up in the compilation process and project run in net beans.</p>
  
  <p>Can somebody help me out how to get rid of this error because when it happen i got this error</p>
  
  <pre><code> java.lang.noClassDefError
  </code></pre>
  
  <p>Please help me getting rid of this error I am a newbie for this error!</p>