I am trying to run a classifier in WEKA, using a J48 classifier using the following command line:
$ java -Xmx2048m -cp /home/weka-3-7-9/weka.jar weka.classif
In terminal use this command
sudo gedit /usr/bin/weka
Change the size in the line
MEMORY="256m"
Quick instruction for the Ubuntu-Users: The heap can be set by changing the line MEMORY="256m"
in the file /usr/bin/weka
with your favored editor.
Weka's instructions state that the "-Xmx..." command will not work from the simple command line interface. I believe you should increase the heap size by editing the RunWeka.ini file. The link I provided should point you in the right direction.