I tried increasing heap size by editing RunWeka.ini file and changed it to 1024m from 256m. I am using large dataset. After changing the file I saved it and ran WEKA again. But still I am getting the error. Is that the change was not taken or 1024m is not enough. Then how to increase further?