找不到驱动程序类:org.firebirdsql.jdbc.FBDriver

时间:2017-05-16 07:23:39

标签: firebird jaybird

我从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

1 个答案:

答案 0 :(得分:0)

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.