PDA

View Full Version : Driver Problem With MySQL



DavidNJ
01-22-2007, 12:15 AM
With the WEKA 3.5 jar and the MySQL 5.0.4 driver. CLASS_PATH is set to the path of the MySQL jar. The DatabaseUtils.props file int eh weka.jar updated. Couldn't find the driver. Platform is Windows XP SP2.

Placing the contents of the org and com paths in the MySQL jar into the WEKA jar allowed it to find the driver. The CLASS_PATH didn't work. And it still returned an intermittent problem.

Is there something else that should be looked at?

Thanks,

David

fracpete
01-29-2007, 08:22 PM
You don't have to update the props file "within" the jar, just extract it, place it in your home directory and modify it there. More about props files:
http://weka.sourceforge.net/wiki/index.php/Properties_file

How did you start Weka? Did you use the -jar option? If yes, this will override your classpath. Use -classpath instead (here an example for starting the GUIChooser):
- Windows
java -classpath "%CLASSPATH%;weka.jar" weka.gui.GUIChooser
- Linux
java -classpath "$CLASSPATH:weka.jar" weka.gui.GUIChooser