Increase+amount+of+Java+memory+in+Eclipse

Go to run->run configurations->arguments tab->VM arguments box->and type a command like "-Xmx1024M". 1024M could be changed to 2048M or another number.