Weka GUI - Not enough memory, won't load?

后端 未结 3 926
萌比男神i
萌比男神i 2021-01-12 12:03

This same installation of Weka has loaded for me in the past. I am simply trying to load the Weka GUI (double click on the icon) and I get the following error. How can I f

相关标签:
3条回答
  • 2021-01-12 12:51

    Just write an answer here for ubuntu users.

    If you apt-get install weka, you will have a script installed at /usr/bin/weka The first a few lines look like below:

    #!/bin/bash
    
    . /usr/lib/java-wrappers/java-wrappers.sh
    
    # default options
    CLASS="weka.gui.GUIChooser"
    MEMORY="256m"
    GUI=""
    

    Just modify the line starts with MEMORY so that you have larger upper bound.

    MEMORY="2048m"
    
    0 讨论(0)
  • 2021-01-12 12:55

    Here is how to do it on Mac:

    • right-click on the main Weka file (that opens the Gui) and select "Show Package Contents";
    • open Info.plist file with any text editor;
    • change the -Xmx option.

    viola

    0 讨论(0)
  • 2021-01-12 13:02

    I'm not sure why you were able to use it before but not now. However, you can specify a larger heap size by changing the RunWeka.ini configuration file. On a Windows machine it should be in the Weka folder of your Program Files directory. You could try a line specifying, for example,

    maxheap=200m
    

    There might already be such an option in that file that you can simply change to a larger number.

    0 讨论(0)
提交回复
热议问题