title: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space on eclipse
body: <p>I am trying to execute this <a href="http://docs.oracle.com/javase/tutorial/essential/concurrency/examples/ForkBlur.java" rel="nofollow">program</a> using fork and join framework. When I feed a JPEG image of smaller size to this program it works fine, but when I give the image of size more than 4 MB it throws below exception:</p>
  
  <pre><code>****Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at ForkBlur.blur(ForkBlur.java:120)
      at ForkBlur.main(ForkBlur.java:110)****
  </code></pre>
  
  <p>I am using eclipse Helios IDE.</p>
  
  <p>I want it to work for larger images of size more than 50 MB</p>