If you saved the model in a file in WEKA, you can use it to read the generated Java object. Here is an example with the Random Forest classifier (previously saved to a file in WEKA):
RandomForest rf = (RandomForest) (new ObjectInputStream(PATH_TO_MODEL_FILE)).readObject();
Do not forget to import:
import weka.core.Instance; import weka.core.Instances; import weka.core.Attribute; import weka.core.FastVector; import weka.classifiers.trees.RandomForest;
source share