peter leonard
2003-09-26 22:46:59 UTC
Hi
I am trying to run several experiments using Weka via a batch file. I'm
using Windows XP with Weka 3-2. The GUI works fine but I need to run many
variations of the same experiment. I've created a bat file named
"Weka_peter.bat" as a test with the following lines :
SET CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
java weka.classifiers.rules.ZeroR -t weather.arff
I saved the bat file C:\Program Files\Weka-3-2\. When I run the bat file
from the command prompt, I receive the following result :
C:\Program Files\Weka-3-2>weka_peter.bat
C:\Program Files\Weka-3-2>SET CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
C:\Program Files\Weka-3-2>java weka.classifiers.rules.ZeroR -t weather.arff
Exception in thread "main" java.lang.NoClassDefFoundError:
weka/classifiers/rule
s/ZeroR
C:\Program Files\Weka-3-2>
I checked the CLASSPATH with SET and it seems fine :
CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
Can someone please help.
Thanks
Peter
_________________________________________________________________
Frustrated with dial-up? Get high-speed for as low as $29.95/month
(depending on the local service providers in your area).
https://broadband.msn.com
I am trying to run several experiments using Weka via a batch file. I'm
using Windows XP with Weka 3-2. The GUI works fine but I need to run many
variations of the same experiment. I've created a bat file named
"Weka_peter.bat" as a test with the following lines :
SET CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
java weka.classifiers.rules.ZeroR -t weather.arff
I saved the bat file C:\Program Files\Weka-3-2\. When I run the bat file
from the command prompt, I receive the following result :
C:\Program Files\Weka-3-2>weka_peter.bat
C:\Program Files\Weka-3-2>SET CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
C:\Program Files\Weka-3-2>java weka.classifiers.rules.ZeroR -t weather.arff
Exception in thread "main" java.lang.NoClassDefFoundError:
weka/classifiers/rule
s/ZeroR
C:\Program Files\Weka-3-2>
I checked the CLASSPATH with SET and it seems fine :
CLASSPATH=C:\Program Files\Weka-3-2\weka.jar
Can someone please help.
Thanks
Peter
_________________________________________________________________
Frustrated with dial-up? Get high-speed for as low as $29.95/month
(depending on the local service providers in your area).
https://broadband.msn.com