I am not sure how to set the heap size irrespective of the IDE. But can someone tell me how to do so while using NetBeans? I want to right click and say run in NetBeans and not get an outofmemoryexception.
i can not understand whether you want to run netbeans with your own HEAP size or you want to run an application inside netbeans with a defined heap size ?
I wanted the project to have more heap size. I searched the help contents of NetBeans before posting and got no hits. But with your guidance, I was able to set the heap size and my project did not run out of memory when I ran it from within NetBeans so thanks!