Avoid using HD IO with .arff file and build Weka instance in memory Guide: http://weka.wikispaces.com/Programmatic+Use