How to configure Weka
From BioWeka
Contents |
Introduction
This articles describes how to set up BioWeka with an existing installation of Weka. This can be necessary if e.g. other Weka extensions are already installed into the Weka environment.
Background
To locate the extension classes, Weka uses a file called GenericPropertiesCreator.props. The format of this file is described here.
Configuration
The BioWeka distribution (bioweka-X.Y.Z.zip) already contains a preconfigured GenericPropertiesCreator.props file. Copy this file into your home directory (~/) if you are using Linux or in the installation directory of Weka (e.g. C:\Program Files\Weka-3-4) if you are using Windows. If you have already altered an existing version of this file, you have to manually merge the two files.
Finally, it is necessary to add the JAR files located in the lib subdirectory to Java's CLASSPATH environment variable, so Weka is able to find the BioWeka extension classes.
- For Linux
- Add this line e.g. to the
.bashrcfile located in the home (~/) directory.
export CLASSPATH=~/bioweka/lib/bioweka-X.Y.Z.jar:...:~/weka/weka.jar:$CLASSPATH
- For Windows
- Replace the content of the
RunWeka.batfile located under theC:\Program Files\Weka-3-4-4\directory with the following lines:
SET CLASSPATH=C:\bioweka-X.Y.Z\lib\bioweka-X.Y.Z.jar;...;C:\Program Files\Weka-3-4-4\weka.jar;%CLASSPATH% java weka.gui.GUIChooser

