Foreverniu
Foreverniu

Reputation: 459

Could not find class 'weka.core.FastVector',

I am using weka for my project. but get the error info"could not find class weka.core.FastVector" on the line below. I have already added weka.jar from the build path of the project by adding external jar file. How should I solve this problem? Thanks a lot for your time on reviewing my question.

import weka.core.Attribute;
import weka.core.FastVector;
import weka.core.Instance;
import weka.core.Instances;
FastVector      atts;
private void setUpARFF(){

         atts = new FastVector();}

Upvotes: 0

Views: 871

Answers (1)

gatapia
gatapia

Reputation: 3664

I know that FastVector was marked as obsolete a while back, perhaps they've finally removed it. Are you using the dev version of weka (or what version are you using)? FastVector can be replaced with ArrayList (in dev version) so use that instead.

Upvotes: 2

Related Questions