0

我在从 firebird 2.1 更新到 2.5 时遇到问题。如果我这样做,系统会回复我:

无法连接到数据库。找不到驱动程序类:org.firebirdsql.jdbc.FBDriver

是 PATH 的问题吗?

update_database:
     [echo] Updating database module: support
[updateDatabase] May 16, 2017 9:14:34 AM org.dbmaintain.datasource.SimpleDataSource createDataSource
[updateDatabase] INFO: Creating data source. Driver: org.firebirdsql.jdbc.FBDriver, url: jdbc:firebirdsql:localhost/3054:d:/firebird/sh_test/SH.FDB, user: sysdba, password: <not shown>

BUILD FAILED
d:\migrace\9352\build.xml:307: The following error occurred while executing this line:
d:\migrace\9352\data\build.xml:159: Unable to perform db maintain task.
**Unable to connect to database. Driver class not found: org.firebirdsql.jdbc.FBDriver**
org.firebirdsql.jdbc.FBDriver
4

1 回答 1

1

This error has nothing to do with Firebird itself, nor the update from Firebird 2.1 to 2.5. This error means that you don't have Jaybird (the Firebird JDBC driver) on the class path of whatever you are executing.

Add Jaybird to the class path and this error should go away.

于 2017-05-16T09:14:15.237 回答