CLASSPATH+problems

= CLASSPATH problems = Having problems getting Weka to run from a DOS/UNIX command prompt? Getting exceptions? Most likely your **CLASSPATH** environment variable is not set correctly - it needs to point to the file that you downloaded with Weka (or the parent of the Weka directory if you have extracted the jar). Under DOS this can be achieved with: code format="text" set CLASSPATH=c:\weka-3-4\weka.jar;%CLASSPATH% code Under UNIX/Linux something like: code format="bash" export CLASSPATH=/home/weka/weka.jar:$CLASSPATH code An easy way to get avoid setting the variable this is to specify the CLASSPATH when calling Java. For example, if the jar file is located at c:\weka-3-4\weka.jar you can use: code format="bash" java -cp c:\weka-3-4\weka.jar weka.classifiers... code See also the CLASSPATH article.