Could not find or load main class when calling Weka

后端 未结 3 1493
情歌与酒
情歌与酒 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条回答
  •  囚心锁ツ
    2021-01-06 20:49

    You can provide the class path with the -cp param:

    java -cp /path/to/weka/weka.jar weka.classifiers.trees.J48 ...
    # on Windows, this is probably something like 
    java -cp C:\path\to\weka\weka.jar weka.classifiers.trees.J48 ...
    

提交回复
热议问题