Could not find or load main class when calling Weka

后端 未结 3 1514
情歌与酒
情歌与酒 2021-01-06 20:22

I apologise for my Java noobness but I am trying to use Weka from console and for some reason I get following error:

Error: Could n         


        
3条回答
  •  Happy的楠姐
    2021-01-06 21:03

    I assume, you use windows, so this is windows command line example. If you get

    SET WEKA_HOME=C:\Program Files\Weka-3-7
    SET CLASSPATH=%CLASPATH%;%WEKA_HOME%\weka.jar
    SET HEAP_OPTION=-Xms4096m -Xmx8192m
    SET JAVA_COMMAND=java %HEAP_OPTION%
    %JAVA_COMMAND% weka.core.SystemInfo
    

    You should get your system values along with weka values, like weka.version: 3.7.9

提交回复
热议问题