试图添加数据库驱动程序(JDBC):RmiJdbc.RJDriver - 错误,而不是在CLASS

2019-07-21 07:58发布

我使用的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?

怎么了?

Answer 1:

没有错误。 weka.jar拥有的DatabaseUtils.props在它的文件。 这个文件有以下行颠覆因此秧鸡尝试加载的驱动程序。

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

用压缩软件打开jar文件,并查找秧鸡\实验\的DatabaseUtils.props文件。



文章来源: Trying to add database driver (JDBC): RmiJdbc.RJDriver - Error, not in CLASSPATH?
标签: java weka