7

我正在使用 Weka

import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;
.
.
DataSource source;
source = new DataSource("somecsvfile.csv");

我在 Eclipse 中以红色在控制台上打印以下内容:

---Registering Weka Editors---
Trying to add database driver (JDBC): RmiJdbc.RJDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): jdbc.idbDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): org.gjt.mm.mysql.Driver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): com.mckoi.JDBCDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): org.hsqldb.jdbcDriver - Error, not in CLASSPATH?

怎么了?

4

1 回答 1

10

没有错误。weka.jar 中有一个DatabaseUtils.props文件。该文件在 subversion 中有以下行,因此 weka 尝试加载该驱动程序。

jdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver,org.gjt.mm.mysql.Driver,com.mckoi.JDBCDriver,org.hsqldb.jdbcDriver

使用 zip 实用程序打开 jar 文件并查找 weka\experiment\DatabaseUtils.props 文件。

于 2013-03-11T23:25:56.607 回答